about us      downloads      documentation      contact      home 
 products
 antHR
 workflow studio
 technical toolkits
 content entry
 workflow
 security
 hierarchy
 concepts
 how tos
 reference
 FAQs

Action: Sub-workflow

Action to launch a sub-workflow
Path: Root\Workflow\Standard actions
This action allows a sub-workflow to be launched. The sub-workflow is launched with sub-parameters, the value of these sub-parameters are mapped from the main case and the main parameters (based on the mapping attributes).
The activity waits for the sub-workflow to finish and then maps the sub-case back to the main case (again based on the attributes of the activity).

Common uses

Provide reusable workflow Allows a workflow section to be seperated from the rest of the workflow and put in to a reuseable workflow. This workflow can be used as a sub-workflow from many workflows.
Structure Allows complex escalations to be removed from the main workflow, allowing the main course to be obvious and the less obvious courses to be sub-workflows. Makes for a far more comprehensible diagram.

Properties

Workflow definition Allows selection of the workflow definition which is used for the sub-workflow. The activity stores both the workflow definition and the version of that definition. If a new version is produced then click update in order to use the latest version.
Map from main case to sub-parameters Allows for multiple mappings to be defined from the main case to the sub-parameters. These mappings are specified in xpath notation. If a $ symbol is preprended to the from mapping then the mapping is made against the main parameters rather than the main case. These mapping are used before starting the sub-workflow.
Map from sub-case to the main case Allows for multiple mappings to be defined from the sub-case to the main case. These mappings are specified in xpath notation. These mappings are used after the sub-workflow is finished.

Transitions

Next Transition is fired after the sub-workflow has finished and the sub-case has been mapped back to the main case.

Did you find this article helpful? Comments on this page are welcome and can only help us improve the quality of our documentation.
© Ant Organisation Ltd, 2003