What is Container in Workflow?
In Sap workflow, we have different types of components and each component will have there own containers to store the data in run time. The components of workflow are Workflow, Task, Event, Rule and Business Object method.The container stores the data that can be used for workflow execution or can be forwarded data between different containers using binding function of workflow.
So we have 5 types of containers corresponding to each component as below:
- workflow container: It is like the global containers which can be accessed from each steps of workflow.
- _WF_Initiator: It stores user name of the "initiator" of the current workflow
- Task Container: Task container can found at task. These container elements are local and only visible inside the task. We can bind the task container with workflow container or method container to import/export data from step execution.
- _WI_Object_ID: is ALWAYS contained in task container and hold the relevant info of single-step task.
- _WI_Actual_Agent: the actual agent who are reference to the object (BOR, BAPI, ..) to be processed actually executed the work item. (e.g. when decision is sent to a user A, he then forwards decision to another user B. If user B execute the decision in SAP inbox, B will be the _wi_actual_agent. )
- _WI_Result: For synchronous tasks with a defined result parameter, the '_WI_Result' element exists, which can save the result of the basic object method.
- event container
- rule container
- method container