Turnstile workflow activity
-
- UpdatedAug 3, 2023
- 1 minute read
- Vancouver
- Workflow
Turnstile workflow activity
The Turnstile activity limits how many times a workflow can pass through the same point.
Use this activity to prevent infinite loops. This activity is useful alongside the ../../../Chunk443675123.html activity.
Results
You can assign a result value using the activity.result variable from within a script field of the activity. By default, the activity script evaluates if the activity should continue to iterate or stop.
Result | Description |
---|---|
Continue | The Allowed iterations value is greater than the number of times the workflow accessed this activity. |
Cancel | The workflow accessed this activity more times than the Allowed iterations value. |
Input variables
Input variables determine the initial behavior of the activity.
Field | Description |
---|---|
Allowed iterations | Number of times the workflow can pass through this activity before the turnstile ends the loop. |
Conditions
The conditions determine which transition comes after this activity.
Field | Description |
---|---|
Continue | If the workflow has returned to this point an amount of times less than the allowed iteration. |
Cancel | If the workflow has returned to this point an amount of times more than the allowed iteration. |
States
The activity state tells the workflow engine what to do with the activity.