IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > SAP Software > SAP interfaces > Advanced event processing interface > Inbound processing

Event triggers

After an event is identified by one of the event-detection mechanisms, it is triggered by one of the adapter-delivered event triggers. Event triggers can cause events to be processed immediately or in the future.

The function modules that trigger events are described in the following list.

Both functions are for real-time triggering.


Current event table

If the event is triggered in real-time, /CWLD/ADD_TO_QUEUE_AEP commits the event to the current event table ( /CWLD/EVT_CUR_AEP). Specifically, it adds a row of data for the object name, verb, and key that represents the event.

Figure 1. The function module adds a row of data to the current event table


Future event table

If an event needs to be processed at a future date, the processing described in the following list. Figure 2

  1. A custom ABAP handler calls /CWLD/ADD_TO_QUEUE_IN_FUT_AEP with the event.

  2. The /CWLD/ADD_TO_QUEUE_IN_FUT_AEP module commits the event to the future event table (/CWLD/EVT_FUT_AEP). Specifically, it adds a row of data for the object name, verb, and key that represents the event. In addition, it adds a Date row

  3. The adapter-delivered batch program /CWLD/SUBMIT_FUTURE_EVENTS reads the future event table.

  4. If scheduled to do so, the batch program retrieves events from the future event table.

  5. After it retrieves an event, the batch program calls /CWLD/ADD_TO_QUEUE_AEP.

  6. The /CWLD/ADD_TO_QUEUE_AEP module triggers the event to the current event table.

Figure 2. How an event is added to the future event table, retrieved from the table, and added to the current event table

/CWLD/ADD_TO_QUEUE_IN_FUT_AEP uses the system date as the current date when it populates the Date row of the future event table.

Inbound processing for the Advanced event processing interface