Introduction to Workflow Branches


First published on: 0

 

 

When creating or updating a Saltbox workflow, you'll use branches to define which actions will be executed sequentially.

 

Generally speaking, branches are a way to group related actions.

 

Several branch types can be configured within the workflow design, as outlined below.  

 

Branching is defined within the workflow design.

 

However, before running the workflow, you must configure the “trigger” (i.e., source) of the workflow’s data. The workflow trigger setup is fully explained here, and it is assumed the trigger has already been configured for the purposes of this guide.  

 

Branch types include: 

  • Simple – This is a basic branch. It's essentially a block whose actions are executed unconditionally. Simple branches can be nested within other branches of any type and can be used to group related actions. 

  • If/If-Else – These branch types define conditional paths that may be executed, but only under specified conditions (e.g., if “X” condition exists, then do “Y” action). 

  • Switch – Switch branches define a list of conditions (also called “cases”) followed by a catch-all default case that's executed only when no other conditions are met. The first path whose conditions are met is the only path executed by the switch branch. 

  • For-Each – This branch type allows the workflow to iterate (loop) through data collections. It applies the same set of actions to each data collection element. 

 

The following sections define how to create a new branch. 


 

-