Start of Content Area

Procedure documentation 1.2.3 Creating a Container Element for the Process Object Locate the document in its SAP Library structure

Use

In this part lesson, you specify the process object in the workflow container so that it can exchange data with your workflow template while the process is running.

Note

When an employee starts a process in the portal, the start application creates a process object. The process object triggers the event TRIGGERED for class CL_HRASR00_WF_PROCESS_OBJECT in the back-end system. This event starts the workflow. For your workflow template to react to the TRIGGERED event, perform the subsequent lesson Defining a Triggering Event for the Workflow.

Procedure

...

       1.      Open the workflow container for your workflow template. Access the Workflow Container area in the bottom left of the Workflow Builder.

The system displays the elements of the workflow container. The standard elements of the container are identified in gray.

       2.      Create a new entry. Double-click on the <Double-Click to Create> row.

       3.      Enter PROCESS_OBJECT in the Element field of the dialog box.

Caution

You must enter the element using this format for your process to run correctly.

       4.      Enter the following Name and Short Description:

       Name: POBJ

       Short Description: Process object

       5.      Specify the data type for the container element.

                            a.      To do this, choose the Data Type tab page.

                            b.      Set the Object Type indicator.

                            c.      Select the ABAP Class entry.

                            d.      Enter the class CL_HRASR00_WF_PROCESS_OBJECT.

       6.      Specify the properties of the container element.

                            a.      To do this, choose the Properties tab page.

                            b.      Set the Import indicator in the Parameter Settings area.

       7.      Choose Apply and save your workflow template.

 

End of Content Area