Define Binding 

Prerequisites

You have created a role based on the RH_GET_STRUCTURE function module using your role container.

To "provide" the role container with the agent that represents the starting point of role resolution, you now define binding for the role container:

The workflow container and task container include system fields that are always available. In the standard system, they are filled by the workflow system. These container elements often include the information required as role parameters and can, therefore, be used as a source for binding. The following container elements include information on users in a C14 field in the <USName> structure.

Procedure

The procedure is explained using the example of an "approve leave" single-step task. This task must always be completed by the manager of the person who submits the request. Therefore, you want to enter the manager_of role as the default role, and then integrate this customer task as an activity in a workflow definition.

  1. Create an element in the task container called applicant with reference to the WFSYST-AGENTS ABAP Dictionary field.
  2. Declare the manager_of role as the default role of this customer task.
  3. Define the following binding from the task container to the role container:
  4. Org_Agent

    &Applicant&

    (Role container)

    (Task container)

  5. In the description of the appropriate activity within the workflow definition, define the following binding from the workflow container to the task container:

APPLICANT

&_WF_Initiator&

(Task container)

(System variable in workflow container)