Use Run If to execute a sequence of child steps only when a condition group evaluates to true. When the condition group evaluates to false, Flowifier skips the complete child branch and continues with the next step.
Step Library: Flow Control > Branching & Conditions
When to use this step
Use this step when you want to:
- run one or more steps only when workflow data meets defined conditions;
- combine several conditions so that either all conditions or at least one condition must be met;
- skip conditional work without creating an alternative branch.
Common examples include:
- sending a notification only when a request is approved;
- creating an escalation task only when an amount exceeds a limit; or
- performing optional work when a form choice or workflow flag is enabled.
Use Branch by Condition instead when you need separate paths for true and false results.
Use a loop step instead when the child steps should repeat while a condition remains true.
Before you begin
This step does not require a connection or special permissions.
Create or identify the variables and previous step outputs that the conditions should evaluate. A variable used for a value comparison must contain a value of the expected type when the step runs.
Configure the step
- Add Run If from Flow Control > Branching & Conditions.
- Select the step to open its configuration panel.
- Optional: Enter a descriptive Step Label.
- Under Conditions, select whether all conditions or at least one condition must be met.
- Select Add condition, choose a variable, and select an operator.
- When Comparison value appears, enter a fixed value or select a compatible variable.
- Add further conditions as needed.
- Add the steps that should run when the condition group is true.
- Save or publish the workflow.
Settings
| Setting | Required | Accepted values | Visible when | Description |
|---|---|---|---|---|
| Step Label | No | Fixed Text, up to 80 characters | Always | Optional name for the step. The default is empty, and the Designer displays Run If. The label does not affect condition evaluation. |
| Conditions to match | Yes | All conditions must be met or At least one condition must be met | Always | Controls how the condition group is evaluated. The default is All conditions must be met. At least one complete condition is required. |
| Select variable | Yes | Start Event, Workflow, Context, or available previous-step variable | Adding or editing a condition | Selects the left side of the condition. There is no default. The variable type determines which operators are available. |
| Operator | Yes | An operator supported by the selected variable type | A variable is selected | Defines how the variable is evaluated. There is no default. Changing the selected variable clears the current operator and comparison value. |
| Comparison value | Yes | Fixed Text, Number, Boolean, or Date value, or a compatible variable | The selected operator compares the variable with another value | Defines the right side of the comparison. It is hidden for operators that do not compare against another value. When a comparison operator is selected, the initial fixed value is empty Text, 0, false, or the current date and time, according to the selected variable type. |
Available operators depend on the selected variable type:
| Variable type | Operators |
|---|---|
| Text | is set, is not set, equals (=), not equals (≠), is empty, is not empty, begins with, does not begin with, ends with, does not end with, contains |
| Number or Date | is set, is not set, equals (=), not equals (≠), is less than (<), is less than or equal (≤), is greater than (>), is greater than or equal (≥) |
| Boolean | is set, is not set, equals (=), not equals (≠), is true, is not true, is false, is not false |
| File, Object, or collection | is set, is not set |
Text comparisons are case-sensitive. Conditions are flat; nested condition groups are not supported.
Data and outputs
Workflow variable effects
This step does not directly modify workflow variables.
Child steps can modify workflow variables. Those changes remain available to later child steps and to steps following Run If. When the condition group is false, the child steps do not run and therefore do not change workflow variables.
Step outputs
This step does not expose step outputs.
Outputs created by a child step are available to later child steps inside the Run If branch. They are removed when the branch completes and are not available to steps following Run If.
Runtime behavior
Execution and completion
When the step starts, Flowifier evaluates the configured conditions in their displayed order. With All conditions must be met, evaluation stops as soon as a condition is false. With At least one condition must be met, evaluation stops as soon as a condition is true.
If the condition group is true, Flowifier runs the child branch and completes Run If after every child step finishes successfully. An empty true branch completes successfully without performing work.
If the condition group is false, Flowifier skips the complete child branch without creating child activities, completes Run If, and continues with the next step.
Run If does not call an external provider and has no external side effects of its own.
Branches and child steps
This step has one child branch. The branch runs once when the condition group is true. Its enabled child steps execute sequentially in their configured order.
Workflow variable changes made by child steps are retained. Child step outputs are limited to the Run If branch and are not exposed after Run If completes.
Child steps keep their own external side effects and failure behavior. Run If does not roll back changes made by a child step when a later child step fails, is cancelled, or terminates the workflow.
Failure, retry and resume behavior
This step does not perform automatic retries.
If evaluating a condition fails, Run If fails before the child branch starts. If a child step fails, is cancelled, or terminates the workflow, Run If propagates that result and does not run the remaining child steps. The workflow does not continue with steps following Run If after cancellation or termination.
In Instance Activities, a failed or terminated Run If activity provides generic context that directs you to the affected child activity. The child activity retains the specific failure detail or configured termination reason.
If a child step suspends the workflow, Run If is suspended with it. When the workflow resumes, Flowifier continues from the suspended child. Children that completed before the suspension do not run again, and the conditions are not evaluated again even if a child changed a variable used by the conditions before suspension.
Errors and limits
| Situation | Result | Resolution |
|---|---|---|
| No condition is configured | The step shows At least one condition is required, and the workflow cannot be published. | Add at least one complete condition. |
| A condition has no variable or operator | The condition cannot be added. | Select a variable and an operator. |
| A required Comparison value is missing | The condition cannot be added or the workflow fails validation. | Enter a fixed comparison value or select a compatible variable. |
| The selected operator is not available for the variable type | The workflow cannot be published with that condition. | Select an operator offered for the current variable type. |
| A fixed Date comparison value is not a valid date and time | The workflow cannot be published. | Enter the value again with the Date and time editor. |
| A value comparison resolves an unset operand | The step fails before the child branch starts. | Set the referenced value before this step, or use is set or is not set when an unset value is expected. |
| A comparison value has an incompatible type | The workflow cannot be published or the condition fails at runtime. | Use a fixed value or variable with the same compatible type as the selected variable. |
| A child step fails | The branch stops, Run If fails, and later steps do not run. | Inspect the failed child activity under Instance Activities. |
| A child step cancels or terminates the workflow | The branch stops immediately, and Run If propagates the cancellation or termination. | Review the child activity that caused the cancellation or termination. |
| A child step creates an external side effect before a later step fails | The completed external side effect is not rolled back by Run If. | Review the child step's recovery guidance before retrying or restarting the workflow to avoid duplicate side effects. |
This step has no additional limits beyond the general workflow limits and the limits of its child steps.
Example
Send a notification only when enabled
Goal: Run notification steps only when a workflow Boolean variable is true.
Configuration:
- Workflow Boolean variable:
Send notification - Conditions to match: All conditions must be met
-
Select variable:
Send notification - Operator: is true
- Child step: Log to Instance Log, configured with the notification message
Result: When Send notification is true, the child log step runs and the workflow then continues after Run If. When the variable is false, Flowifier skips the child branch and continues without writing the notification message.
Related information
- Branch by Condition — execute separate paths for false and true condition results.
- Repeat While — repeat child steps while a condition remains true.
- Group Steps — organize child steps that should always run together.
- Workflow variables — store values that conditions and child steps can use.
Comments
0 comments
Please sign in to leave a comment.