Complete Activity

Purpose: Signals the current composite activity to complete itself as a whole. This activity allows you to complete a parent composite activity (like Sequence, Parallel, or custom composite activities) from within its child activities.

Input Properties

Outcomes

The outcome or set of outcomes to complete the parent composite activity with.

Type: object

Required: No

Note: Can be a single string outcome, an array of outcomes, or an expression. If not specified, defaults to "Done".

Output Properties

This activity has no output properties.

Usage Example

Scenario: Complete a Sequence early based on a condition

Workflow Structure:
1. Sequence Activity (composite)
   - Check condition
   - If condition met: Complete Activity with outcome "EarlyExit"
   - Otherwise: Continue with other activities

Configuration:
- Outcomes: "EarlyExit" (single outcome)

Result:
- The Sequence activity completes immediately with "EarlyExit" outcome
- Remaining activities in the Sequence are not executed
- Parent workflow can branch based on the outcome

Important Notes

  • Complete can only be used inside composite activities (Sequence, Parallel, custom composites)
  • When Complete is executed, the parent composite activity completes immediately
  • Remaining child activities in the composite are not executed
  • You can specify one or multiple outcomes for the composite activity
  • Complete is a terminal activity - it stops the current execution path
  • Use Complete for early exit scenarios in composite activities
  • Different from End which completes a flowchart, Complete completes a composite activity

Related Activities