Selection
Last updated
Last updated
The Selection component allows you build flexible branching logic in your workflow, accommodating different conditions or criteria. Unlike the binary setup of the Condition component, Selection offers multiple paths, giving you more flexibility in decision-making. It evaluates input values against predefined cases or branches to steer workflow direction effectively.
You can use various operators to define conditions that determine the flow of execution. These operators allow you to compare values and make decisions based on specific criteria. Below is a table listing the operators available in the Selection Node:
By utilizing these operators, you can create complex and flexible conditions within your workflows, ensuring that your automation behaves exactly as needed. Whether you are comparing numerical values, checking for specific substrings, or verifying the presence of data, these operators provide the tools you need to build effective conditional logic.
Add Selection Component to Canvas:
To add the Selection components to the canvas, you have two options:
Navigate through the components menu in the side panel, and drag the Selection component onto the canvas of your workflow.
Click the plus icon, which opens a window allowing you to search for various components and connectors. Search for the Selection component and select it.
Each component will be labeled with a unique identifier (e.g., selection_1) for easy reference if multiple Selection components are used.
Access Selection Component Settings:
Click on the Selection Component to open its settings.
Enter Selection Details:
Within the Selection component settings, provide the following information to define the branches or cases based on which the input value will be evaluated:
Input Value: Enter the value that you want to evaluate.
Operator: Choose the operator or condition to be applied.
Branches: Specify the values to compare with the input value for each branch.
Default: Default branch that is followed if none of the other conditions are met.
Case 1, Case 2, ...: Additional branches representing specific conditions.
Adding Multiple Branches:
To add more branches, click on the "Add Branch" button. This allows you to create and manage multiple branches to accommodate various conditions.
Submit: After entering the selection details and adding branches as needed, click the "Submit" button to confirm your configuration.
Hover for Information: Hover over the Selection component on the canvas to view a tooltip with additional information.
Add Components to Paths:
Connect components to each branch of the Selection component based on the conditions defined. Components added to each branch will be executed based on the outcome of the selection evaluation.
Execute the Selection Component:
Hover your mouse over the Selection Component to display the action buttons then click the play button to execute the step. The execution result can be viewed in the logs panel.
NOTE:
The Selection component enables you to create dynamic decision points in your workflow, allowing for branching based on specified conditions.
Ensure that the input value and conditions defined in each branch are compatible and accurately represent the logic of your workflow.
Test the Selection component with various input values to verify expected behavior and ensure proper flow control.
Operator | Description |
---|---|
Equal
Routes the flow if the input value is equal to the branch value.
Not Equal
Routes the flow if the input value is not equal to the branch value.
Greater Than
Routes the flow if the input value is greater than the branch value.
Less Than
Routes the flow if the input value is less than the branch value.
Greater Than or Equal
Routes the flow if the input value is greater than or equal to the branch value.
Less Than or Equal
Routes the flow if the input value is less than or equal to the branch value.
Contains
Routes the flow if the branch value is contained within the input value.
Not Contains
Routes the flow if the branch value is not contained within the input value.
In
Routes the flow if the input value is included in the list of branch values.
Not In
Routes the flow if the input value is not included in the list of branch values.
Starts With
Routes the flow if the input value starts with the branch value.
Ends With
Routes the flow if the input value ends with the branch value.