Show TOC

 Determining Events That Are Triggered By a Workflow Template

Use

If a process is started with the start application in the Portal, the system triggers an event CL_HRASR00_WF_PROCESS_OBJECT.TRIGGERED in the back-end system to start the workflow. At runtime you can check in the event trace to see which events were triggered and which workflow templates used the event.

Prerequisites

You have set up event type linkage in the relevant client. For more information, see Activating the Start Event and Setting up Type Linkage for the Process .

Procedure

  1. Choose transaction SWEL (Display Event Trace) , or from the SAP Easy Access screen, choose Start of the navigation path Tools Next navigation step Business Workflow Next navigation step Utilities Next navigation step Events Next navigation step Event Trace Next navigation step Display Event Trace End of the navigation path .

  2. Enter CL_HRASR00_WF_PROCESS_OBJECT in the 'Creator' Object Type field.

  3. In the Event field, enter TRIGGERED .

  4. Fill additional selection criteria as required.

  5. Set the Only Events with Linkages indicator, or if necessary the With and Without Linkages indicator.

  6. Choose Execute .

    The system issues a list of the workflow templates that have used the event CL_HRASR00_WF_PROCESS_OBJECT.TRIGGERED.

    In the output you see when the event was generated for the class of workflow templates that react to the event. The workflow templates that have also processed the event are indicated by a green disk in the Information column. To display detailed information about the entry, double-click the entry.

  7. It is possible that you are missing an entry for a workflow template. If this is the case, check the following:

    • Is the event trace enabled?

    • Are there restrictions in place that define which events the system follows up?

      In the output list menu, choose Start of the navigation path Goto Next navigation step Switch Event Trace On/Off End of the navigation path .

  8. Check whether the Event Trace Switched On indicator is set. If so, this cannot be the reason that the entry is missing.

  9. Check whether there are restrictions in place.

    If the symbol on the Restrictions for Trace pushbutton is gray, there are no restrictions in place. If the symbol is colored, check whether restrictions are in place for the class CL_HRASR00_WF_PROCESS_OBJECT. Remove these restrictions if necessary.

    For more information, see the SAP Business Workflow documentation, by choosing Start of the navigation path Reference Documentation Next navigation step Workflow System Administration Next navigation step Event Manager Administration End of the navigation path .