Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 1.12 KB

workflow-activation-strategies.md

File metadata and controls

7 lines (4 loc) · 1.12 KB

Workflow Activation Strategies

Workflows can be configured with an activation strategy, which controls whether a given workflow can be executed or not. For example, the Always strategy will always allow the workflow to be executed, while the Singleton strategy will only allow the workflow to be executed if an existing workflow instance isn't already in the Running state.

Out of the box, Elsa ships with the following activation strategies:

StrategyDescription
AlwaysAlways allow the workflow to execute.
SingletonOnly allow the workflow to execute if there isn't already an instance of the same workflow running.
CorrelationOnly allow the workflow to execute with a given correlation ID if there isn't already any other workflow running with the same correlation ID.
Correlated SingletonOnly allow the workflow to execute with a given correlation ID if there isn't already an instance of the same workflow running with the same correlation ID.