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:
Strategy | Description |
---|---|
Always | Always allow the workflow to execute. |
Singleton | Only allow the workflow to execute if there isn't already an instance of the same workflow running. |
Correlation | Only 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 Singleton | Only 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. |