Sequence Activity
Purpose: Execute a set of activities in sequence. This activity executes its child activities one after another, in the order they are defined.
Input Properties
This activity has no input properties. It contains child activities that are executed sequentially.
Output Properties
This activity has no output properties.
Child Activities
Activities
The collection of activities to execute in sequence.
Type: ICollection<IActivity>
Note: Add activities to this collection. They will be executed one by one, in order, waiting for each to complete before starting the next.
Usage Example
Scenario: Execute multiple activities in order
Configuration:
- Add activities to the Sequence:
1. WriteLine("Starting process")
2. SetVariable(Counter, 0)
3. WriteLine("Process started")
Result:
- Activities execute one after another
- Each activity completes before the next starts
- Output: "Starting process", then Counter is set, then "Process started"
Important Notes
- Activities execute sequentially - one at a time, in order
- Each activity must complete before the next one starts
- If any activity faults, the sequence stops and the fault propagates
- If a Break activity is encountered, the sequence stops immediately
- If a terminal activity (like End) is encountered, the sequence completes
- Use Sequence when you need activities to run in a specific order
- For parallel execution, use Parallel activity instead