Control Nodes
Control Nodes are pivotal in orchestrating the flow of operations within a Nected workflow. Unlike Action Nodes that perform actions, Control Nodes manage how and when actions occur, influencing the workflow’s logic and timing.
Types of Control Nodes
Loop Node: Loop Node operates like a loop in typical coding. Use it to run repeated tasks or iterate over data sets inside your workflows. This node reduces manual labor and streamlines processes to iterate over multiple items/records present in the flow.
Wait & Resume Node (previously known as Delay Node): Introduces a wait time or pause before the next action in a workflow is taken. This is particularly useful for timing-dependent operations, such as waiting for a rate-limited API to become available or spacing out email notifications.
Response Node: Used primarily in workflows that act as services, the Response Node allows for sending back data or acknowledgments to external systems or triggers.
Set Variable Node:Assigns or updates a variable's value within the workflow. Variables can be used to store data temporarily, pass data between nodes, or make decisions based on data conditions.
Switch Block: Defines multiple execution paths based on specified conditions, similar to a switch-case statement. This control node allows different parts of the workflow to run simultaneously, providing flexibility and improving efficiency in workflow management.
Parallel Block: Splits the workflow into two or more paths (up to 10) and runs all of them at the same time. When every path has finished, the flow joins back at Parallel Done and continues. Use it to run independent tasks, such as several API calls, database queries or rule executions, side by side instead of one after another. This cuts the total execution time of the workflow.
Parallel API: Runs multiple REST API calls at the same time instead of one after another. The simplest way is to add a Parallel Block and place each REST API node on its own path. All the calls start together, and their responses are available to every node after Parallel Done. You can also run APIs in parallel with a single Rule, a RuleSet, or a Loop Node combined with a Switch Block.
Adding Control Nodes
Adding a Control Node is just the same as adding an action node which is discussed in the Overview Page under th e section "Add Node".
By effectively using Control Nodes, you can ensure your workflows are dynamic and adaptable, able to respond appropriately to various runtime situations and data states. This level of control and flexibility is what makes Nected workflows powerful for automating complex business processes.
Last updated