Specify flow completion attributes
You can specify the following flow completion criteria to specify when Process Manager should consider the flow complete and assign it a state:
Procedure
- All work completes successfully or any work item fails. This is the default.
- All selected work items end.
- Any selected work items end. You can also specify what Process Manager should do when the state of the flow is determined
- Complete any work in progress and stop running the flow. This is the default.
- Change the flow state immediately but continue running the flow until any remaining work items that can complete, complete.
- Continue running the flow and only change the state when any remaining work items that can complete, complete.
- Determine the flow exit code either from the sum of exit codes of all work items in the flow(this is the default), or from the last finished work item in a successful flow, or the last failed item in a failed flow.
Assign a state to a flow when all work items are done
Procedure
Assign a state to a flow when all selected work items end
Procedure
Assign a state to a flow when any selected work item ends
Procedure
Continue processing when the state of the flow is determined
Procedure
- From the Action menu, select Specify Flow Completion Attributes, or right-click in a blank section of the flow definition, and select Completion Attributes. The Flow Completion Attributes dialog box appears.
- If you want the work item to continue to run but change the flow state, select Change the flow state immediately and continue running the flow. This allows you to immediately trigger the next work item if there is one that is dependent on this flow or subflow. New time, file, and proxy events in the flow that are set to trigger jobs are not considered when continuing to run the flow. After determining the flow state, Process Manager does not evaluate these events.
- Click OK. When the flow is considered complete and assigned a state, any eligible work items in the flow will continue to process until Process Manager cannot run any more work, or until the remaining work is dependent on events or has dependencies that cannot be met. The flow is then stopped.
Continue processing and only change the state after the flow is complete
Procedure
- From the Action menu, select Specify Flow Completion Attributes, or right-click in a blank section of the flow definition, and select Completion Attributes. The Flow Completion Attributes dialog box appears.
- If you want to continue to process as many jobs in the flow as possible Continue running the flow and when the flow is complete, change the flow state.
- Click OK. The flow will continue to run and only change state once Process Manager cannot run any more work, or until the remaining work is dependent on events or has dependencies that cannot be met.