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 .
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.
Create a new entry. Double-click on the <
Double-Click to Create
> row.
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.
Enter the following
Name
and
Short Description
:
Name
:
POBJ
Short Description
:
Process object
Specify the data type for the container element.
To do this, choose the
Data Type
tab page.
Set the
Object Type
indicator.
Select the
ABAP Class
entry.
Enter the class CL_HRASR00_WF_PROCESS_OBJECT .
Specify the properties of the container element.
To do this, choose the
Properties
tab page.
Set the
Import
indicator in the
Parameter Settings
area.
Choose
Apply
and save your workflow template.