Show TOC

 1.2.6 Activating the Start Event and Setting Up Type Linkage for the Process

Use

If a user starts a process in the portal using the start application, he or she fills out a form and sends it to the next processor. The start application creates a process object and saves the data that the user entered to the process object. The process object triggers the event TRIGGERED for class CL_HRASR00_WF_PROCESS_OBJECT.

This part lesson enables the workflow template ZTWS to react to this event in the system client in which it is used.

Note Note

You must perform the type linkage in all clients in which you want to use your workflow template.

End of the note.

Prerequisites

  • You have set up the standard settings and basic settings for the SAP Business Workflow .For more information, see the Implementation Guide for SAP NetWeaver , by choosing Start of the navigation path Application Server Next navigation step Business Management Next navigation step SAP Business Workflow. End of the navigation path

  • You have defined the triggering event for the workflow. For more information, see the Defining a Triggering Event for the Workflow lesson.

Procedure

Activating the start event
  1. Open your workflow template in the required client.

  2. Choose the Basic Data function.

  3. Choose the Version-INdependent (Task) tab page.

  4. Choose the Start Events tab page.

  5. Activate the type linkage.

    Do this by clicking on the symbol in the Active column in the line in which you specified class CL_HRASR00_WF_PROCESS_OBJECT and then save your entries.

    The symbol changes its shape to a square and its color to green.

  6. Save your entries.

  7. Choose Back and activate your workflow template.

Defining type linkage
  1. Choose transaction SWETYPV ( Define Event Type Linkage ), or from the SAP Easy Access screen, choose Start of the navigation path Tools Next navigation step Business Workflow Next navigation step Development Next navigation step Definition Tools Next navigation step Events Next navigation step Event Linkages Next navigation step Type Linkages End of the navigation path .

  2. Select the following entry:

    Object Category

    Object Type

    Event

    Receiver Type

    ABAP class

    CL_HRASR00_WF_PROCESS_OBJECT

    TRIGGERED

    <technical ID ( WS* ) of your workflow template>

  3. Choose Details .

  4. Enter HR_ASR_CHECK_EVENT in the Check Function Module field.

    Note Note

    You must enter the check function module HR_ASR_CHECK_EVENT as described here.

    End of the note.
  5. Leave the default settings in the other fields.

  6. Save your entries.