Binding Definition from Task Container
Use
You can define bindings from the task container to the following containers:
-
Workflow container
-
Rule container
-
Method container
Features
Binding definition to workflow container
The binding is applied after execution of the work item. The binding can be defined in step type definitions that refer to a task. It is necessary if you require information for the workflow, which is available after execution of the underlying object method.
Special information on object reference
If an object is created (for example, with the method Create) or established (for example, with the method Find) in task processing, you must define the binding from the element _WI_Object_ID in the task container to the element in the workflow container, which can contain the object reference. The information is only available in the workflow, and therefore for the subsequent steps, if you have defined this binding.
Actual agent: Element _WI_Actual_Agent of the task container
If you want to transfer the actual agent of a work item (available under the element ID _WI_Actual_Agent in the task container) to the workflow container for further use, you define an appropriate element in the workflow container to contain this information.
You create this element with a reference to the ABAP Dictionary field WFSYST-AGENT.
Result of the object method: Element _WI_Result of task container
The result of the object method is available under the element ID result (_WI_Result) in the task container. You must define an appropriate element in the workflow container, if you want to transfer the result into the workflow container. When defining the container element, use the same data type reference that the element _WI_Result has in the task container.
Binding definition to rule container
You define this binding in the definition of a task if you have entered rules for one or more recipient types on the tab page Default rules.
You must add the elements required to resolve the rule to the task container in order to define a binding between these new elements and the appropriate elements of the rule container.
Depending on the type of the rule for agent determination, you need to transfer the following data:
|
Rule type |
What is transferred in the binding? |
|---|---|
|
Responsibilities |
Responsibilities Container elements that are used for the responsibility check |
|
Organizational Data |
Attribute of the business object that refers to the organizational object |
|
Function Module |
Container elements that are used as import parameters for the function module |
Binding definition to method container
The task container is completely copied to the method container at runtime as standard.
You can define this binding definition when defining a task. SAP only recommends that you do this if you do not explicitly want to provide the import parameter of the method with data or if you define your own binding from the method to the task container.
Catering for the container elements _WI_Object_ID
The container element _WI_Object_ID in the task container is not incorporated into the binding definition to the method container. At runtime, the workflow system ensures that the object reference from the element _WI_Object_ID is available in the key fields in the program of the object type.
Activities
For more information, see Operation of the Binding Editor.