Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Rule Builder allows you to create a rule that has more than one condition. In this way, you can write a rule that performs actions based on the values of more than one field. There is just one additional step to consider. When you use multiple conditions in a rule, you can edit the logic expression to specify

  •  All the conditions must be true (AND operation) - Ex: 1 and 2 and 3 and 4 and 5 and 6 and 7
  • Or only one of the conditions needs to be true (OR operation) before the actions are executed. Ex: 1 or 2 or 3 or 4 or 5 or 6 or 7
  • You can also group parts of the logic expression using parentheses if necessary.

Let's say you have a field in a Travel Request workflow where the user selects a destination country from a dropdown. Countries that call their subdivisions "states" are: United States, Mexico, Australia, Brazil, India, Germany and Myanmar.

Rule Requirement: If any of these countries are selected a Destination State field is enabled so the user can enter the Destination state. Otherwise, the Destination State field is disabled.

The Condition wizard for the business rule is shown in the image. Note that each condition is assigned a color coded number that is reflected in the logic expression.  The logic expression is built with the and operator by default. Since we want the rule to execute when any of the conditions are true, we must change all the and operations in the logic expression to the or operation.

...

Rules created with the Rule Builder are automatically converted to JavaScript and co-exist with existing JavaScript rules. Of course, you can still add JavaScript directly or edit the generated code to make manual changes to your rule once you have created it with the Rule Builder.

  1. Click the Rule Code tab then click on Edit Code tab to add/edit JavaScript.

Warning

Clicking the Edit Code button permanently disables the Rule Builder for this rule.

Examples

Example 1 - Rule that manipulates controls in a form

Example 2 - Show the Accounting section on Step 3 of the workflow

 

Future Releases of the Visual Rule Builder

This is version 1 of the Rule Builder - . More common rule patterns will be available in future releases. VRB

Info

This version of the Visual Rule Builder does not currently support screenflows

...

that use the

...

Navigation toolbar to move back and forth between screenflow steps.



Examples

Example 1 - Rule that manipulates controls in a form

Example 2 - Show the Accounting section on Step 3 of the workflow

 


This reduces the need to write code. Expense Report with catagory - auto