Posted on Sep 19, 2012 at 2.25 PM - Kuala Lumpur, Malaysia
As strange as it may sound, we can actually exchange task at runtime. So far, I have no real requirement yet that use this workflow feature, but it's good to know that SAP workflow has the capability actually.
1. Prior to creation of workflow, we have to create subworkflow which will be used for task exchange at runtime. All the subworkflow must have the identical interface and place withing one task group (task group can be created from transaction code PFTC).
2. Make sure the cursor is placed at the step which task is going to be exchanged at runtime, and click on the workflow wizard: Include "Exchange Task".
3. The workflow wizard will come out, and by answering some questions the necessary workflow container element will be created to store task chosen by the agent of the predecessor step
4. The additional step TS70008069 to select task will be created prior to the step to be exchanged at runtime.
5. Make sure the binding of the step to be exchanged at runtime is done correctly. You will see the task group ID is the input to the task container and workflow container element will be populated with the task ID which has been chosen by the user.
6. The result of the workflow wizard will be something similar to the workflow definition below:
How do we choose which task to be used at runtime? It will come as a work item in the inbox, so the user can choose the task to be executed at runtime.
Life is beautiful! Let's make it meaningful and colorful!