Guards
Business rules can guarded by writing an expression
![]() |
When guarding a business rule, the expression found in the guard will be evaluated and if true, the business rule will be considered part of the process.
In the above example, if the value of the event NL_Conditions is 1 then the activity Betingelser will be included in the process.
Expressions are formally described here. Right now constraints can be integers, numbers, true or false, null or a string value.
Guards are typically used in DCR Forms as forms have data attributes associated with activities/events.
This process holds an example DCR Form where a decision event holds a guard from the decision to an explanation field. If the decision is Yes (1), the explanation event/field is included in the form:
![]() |
Notice the [ and ] around the guard.
When choosing Yes in decision the extra field is included as illustrated below: