Thursday, March 13, 2008

How is an event triggered from the application and a workflow then started?

An event can be triggered from the application in three different ways:

  • Directly:

Within the application, the SWE_EVENT_CREATE function module or the SWE_EVENT_CREAT_IN_UPD_TASK function module, for example, generates an event in the update.

  • With a change document:

Change documents are written within the application when you change application objects in the update. You can link events that have the same key with these types of change documents via transaction SWEC.

  • With status management:

The SWE_EVENT_CREATE_STATUS function module triggers an event in the same way as the direct method when a status is changed. This event contains the object type (for example, purchase order), the object key (for example, purchase order 4711) and other information. Using transaction PFTC, you can assign the event to a specific workflow or single-step task. More settings are available in transaction SWE2.

No comments:

Blog Archive