Rules

Rules


The form tab ‘Rules’ are sets of rules which can change the behavior of the form depending on the trigger events.


image-20250819-132215.png

 

Reference

Attribute

Description

Reference

Attribute

Description

1

Create rule

While the user opens the ‘Rules’ tab for the first time the 'Create rule'-button allows to create a new rule.

2

Create

The plus button in the lower left of the ‘Rules’ tab allows for the creation of a new rule.

3

Trigger event

On the left side of the view there are trigger events listed. Under each trigger event, the created rules are shown accordingly slightly indented (see next image).

 

image-20250819-132529.png

 

Reference

Attribute

Description

Reference

Attribute

Description

4

Name

The name for the creation of a new rule to the system.

5

Trigger event

Via drop-down the desired trigger event can be selected. Trigger events of a rule can be on form load, on form input and before form submit/save.

6

Conditions

On the condition part the user sets a condition state of an element (e.g. radio button element selected by variable name should not be equal with value 'Yes' depending on the condition the user can alter the behavior of another element or container.

7

Buttons

With the 'Copy rule'-button the rule can be copied and with the 'Delete rule'-button the rule can be deleted.


Using current user's language

 

image-20250819-133046.png

 

Reference

Attribute

Description

Reference

Attribute

Description

1

SYS.CURRENT_USER_LANGUAGE

On the "Select an Element" user can set rules according to their preferred language that are taken from system variables.

2

Select a Property

On the "Select Property" field, users can choose the options available, such as Equals. Other options are: Has a value, Contains, Starts with etc.

3

Language Value

In the "Value" field user must enter the language that wants to apply to the rule such as German. Other example includes "English", “Bulgarian” or any supported language in the product.

4

Select an Element

User selects the element for the applied rule like “comment” component in this case

5

Select a Property

Set the property you want to be applied for the component: Required, Writeable, Value etc. We want to set the value for the comment text area in this case.

6

Value

Set the value you want to apply to the rule. 

The rule above can be interpreted as: when user set the language as German in the product, then add in the comment section the value "Keyboard layout must be German"

To test the rules that are enabled, the user can go to the ‘Preview’ tab and check for rules behavior depending on the configuration of the rule.

image-20250819-133657.png

 

If you start the instance of the process definition after setting the rule, you will have

a) When English is set as user language, the comment textarea displays the placeholder text

image-20250819-133551.png

 

b) When German is set as user language, the textarea is filled with the rule “Keyboard must have German Layout”

image-20250819-133703.png