Useful task attributes: Plans: abort & terminate
Plans: Using the abort and the terminate conditions to interrupt a process
Plans have two task-specific attributes, which can interrupt the flow of the process:
Abort Condition | A truth-valued expression indicating the conditions under which the task should abort. Once this condition is met, the plan’s state is set to discarded. All tasks within the plan that have not been completed are discarded as well. |
Terminate Condition | A truth-valued expression indicating the conditions under which the task should terminate. Once this condition is met, the plan’s state is set to completed. All tasks within the plan that have not been completed are discarded. |
If the abort condition is used in a plan set in a workflow as in the figure above, because the plan is discarded, the tasks following the plan are discarded as well. Alternatively, if the terminate condition is used, the plan completes, and the workflow can continue.
Note: Abort conditions are only checked when scheduling constraints have been met, whereas termination conditions are checked in advance.
Browse through a process-description:
- Management of weight loss
- The top-level plan terminates if the patient doesn’t suffer from weight loss.
- If you have installed the Tallis Toolset, you can find this sample in the World > Samples folder in the ACL Web Repository.
- Run this sample file
- Click here for a hands-on tutorial that takes you step-by-step through the stages of constructing this sample.