Modules
...
Journey Builder
Rule Engine

Chaining of Rules

4min

When more than one rule is implemented in the rule engine, the rules must be written in such a way that they are interlinked. This is known as the chaining of rules.

The chaining of rules can be illustrated through an example.

Customization of conditions for chaining of rules
Customization of conditions for chaining of rules

  • We have used logical conditions in this case. Each condition's variable must be chosen.
  • Then we must select the operator for the conditions, such as numberGreaterThan, numberLessThan, equal, not equal, and so on.
  • For this example, we've used the equal operator.
  • The value that it should be equal to, is then added.
  • By selecting the Add New Condition option, we can also add new conditions.
Add new Condition option
Add new Condition option

  • After including all of the necessary conditions, we must then click the Proceed button.
Rule configuration for chaining of rules
Rule configuration for chaining of rules

  • Here, we choose the Rule name as Tollywood 2, the operator is Any and the condition is Tollywood.
  • Then we start selecting suitable rules. 
  • If the condition is true, then the destination page will be Tollywood. If it is false or uncertain, then an error message/pop-up will appear, so, the destination is chosen as Show Popup Error.
  • We can also configure the message to be shown on the Error pop-up and the text for the Pop-up error button.
Rule configuration for chaining of rules
Rule configuration for chaining of rules

  • Then, we name the second rule Hollywood. Again we choose the operator as Any and the condition as Hollywood.
  • Then we start selecting suitable rules. 
  • If the condition is true, then the destination page will be Hollywood. If it is false or uncertain, then the destination page will be Tollywood 2 (the previous rule).
  • This is done so that if we do not select Hollywood then the journey will go back to the previous screen.

This chaining of rules goes on for further pages. On the condition of being true, the pages will land on their specified destination pages, and if they are false or uncertain, then they will be linked to the rules preceding them. Each page is linked to one another in this way and the journey continues smoothly.

Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.

You can reach out to us at [email protected].