Skip to content

Check Conditions and branching Action in Workflows

Views
2
Last updated

This article explains how the Check Conditions action evaluates ticket and workflow data against a set of rules, and how you use it to branch a workflow into different paths based on the result.

 

Prerequisites

What it does

Check Conditions evaluates a condition group against the data available in the workflow at that point, then routes execution down a Yes branch or a No branch depending on whether the group matches. This is the action that makes branching possible in HappyFox Workflows — without it, a workflow can only run in a straight line from trigger to actions. With it, you can send a ticket down one set of actions if a rule is met and down a different set if it isn't.

 

You can add more than one Check Conditions action to a workflow, and you can nest a Check Conditions action inside the Yes or No branch of another one. This lets you build multi-level decision trees — check the request type first, then check the priority within that branch, then check the requester's department within that, and so on.

The Check Conditions configuration panel, showing the Name field and the Match All and Match Any condition groups.

 

Available options

Field What it does
Name Identifies the condition group so you can recognize it later in the workflow builder and in Run History.
Match All A set of rules that must all be true for the group to match — equivalent to an AND condition.
Match Any A set of rules where at least one must be true for the group to match — equivalent to an OR condition.
Field The ticket field, contact field, or workflow value you want to test (for example, Priority or a custom field).
Predicate How the field is checked against the value you provide. See the full list of predicates below.
Value The value to compare against, for predicates such as is, is not, contains, does not contain, equal to, list contains, and list does not contain.
Value (numeric thresholds) For numeric predicates, the comparison threshold — entered as less than,  less than or equal to, greater than, or greater than or equal to

 

Available predicates

Text and set predicates Numeric predicates
is less than
is (case insensitive) less than or equal to
is not equal to
is not (case insensitive) greater than
is set greater than or equal to
is not set  
contains  
contains (case insensitive)  
does not contain  
does not contain (case insensitive)  
list contains  
list does not contain  

Note: If you add rules under both Match All and Match Any in the same group, the group only matches when every Match All rule is true and at least one Match Any rule is true.

How the branches work

Every Check Conditions action produces a block 

Warning: If any action inside the Block fails, the entire workflow fails at that point. No further actions run — inside the branch or after it. Test each action inside a Check Conditions branch individually with Save and Test before enabling the workflow.

How to use it

  1. Open the workflow and click Add Action.
  2. Select Check Conditions from the action list.
  3. Enter a Name for the condition group — use a name that describes what the group checks, such as "Priority is Urgent."
  4. Choose whether to add your rules under Match All, Match Any, or both, depending on whether the group should require every rule to match or just one.
  5. Select the Field you want to test.
  6. Select a Predicate from the list.
  7. Enter a Value to compare against, or enter the numeric threshold under less than, greater than, less than or equal to, greater than or equal to if you selected a numeric predicate.
  8. Repeat steps 5–7 for each additional rule in the group.
  9. Click Save and Test to confirm the group evaluates as expected against a sample ticket.
  10. Add actions inside the Yes branch for the outcome you want when the group matches. Leave the No branch empty, or add separate actions there for the non-matching outcome.

Note: Is set and is not set check only whether the field has a value — they don't require a Value entry.

Nesting a Check Conditions action

You can add another Check Conditions action inside an existing Yes or No branch to check a second, more specific set of rules once the first group has already matched.

  1. Inside the Yes (or No) branch, click the + icon where you want to insert the next step.
  2. Select Check Conditions again to add a nested condition group.
  3. Configure the nested group the same way as the parent group, using a distinct Name so the two groups are easy to tell apart in Run History.

 

Common use cases

 

Check Conditions now routes this part of your workflow based on the rules you defined.