elsa-core/samples/console/Elsa.Samples.ConsoleApp.ConditionalWorkflows
2024-02-02 20:01:14 +02:00
..
Elsa.Samples.ConsoleApp.ConditionalWorkflows.csproj Move samples to repository root 2024-02-02 20:01:14 +02:00
Program.cs Move samples to repository root 2024-02-02 20:01:14 +02:00
Readme.md Move samples to repository root 2024-02-02 20:01:14 +02:00

Conditional Workflows

Many workflows consist of conditional logic to determine which path of execution to take next. One option to model such a workflow is the use of If

If

The If activity provides a Condition property that can be set to a flavor of a workflow expression. In addition, the activity provides a Then and Else property, to which we can assign an activity to execute.

When the condition evaluates to true, the Then activity is executed, otherwise the Else activity is executed.