Below is an indication of the different components of the Rule Designer:
The rule definition toolbar is available at the top of the rule definition section and can be used to order and manage rules. The execution of the actions within the execution block is affected by the order and execution type of those actions. Therefore, it is important to look closely at the execution blocks as well as the order of the actions within the execution block to ensure that the rule behavior is correct.
Comments can be added on the following levels and will be indicated with a speech bubble on the right of the canvas when applied:
Clicking on an existing speech bubble or creating one from the toolbar or popup menu will open a dialog box to add comments. When hovering over a speech bubble containing a comment, a tooltip is displayed with the comment for ease of use. Comments can only be edited on the level at which it was created, for example if a comment was added on a rule on View level, the comment can only be edited on View level. This means that comments cannot be applied to inherit actions, however, comments that were added on parent level will be visible on inherited actions.
When Actions are added to a Rule, they are added at the bottom of the Rule statement or definition. Actions can be moved up or down to execute in a different order. You can also change how the Actions are grouped together into execution blocks. Execution blocks can either be one after another, concurrently, asynchronously or in a batch. The use of these blocks can affect how the Rule executes and are best used based on the View or Form’s scenario.
Rules and their execution types should be seen in context of a more holistic solution. Rules and Actions provides the ability to construct a logical path for the user, for example validate the Form, prompt for confirmation before saving, perform a save, show a message, or navigate to another Form. Some of these Actions can happen concurrently, whilst others should wait before continuing with the rest of the Actions. The Execution blocks can therefore be used for more complicated executions and not just method executions.
At the front of each Action statement, there is a word that can be changed. This word (then, and, also or asynchronous) affects how the Action is called:
Then - Means one after another, and executes sequentially:
And - Means concurrently:
Also - Means in a batch:
Asynchronous - Means asynchronously:
The settings option allows the user to provide a name and description for the rule. Rule names should be unique per context, for example per View, per Form, per Form state and per View on a Form. If a rule name is not specified, the name will default to the event used in the rule. The description will show as a tooltip when hovering over the rule in the rule grid.
Video | Links | Learn | Support |
No videos found for this article K2 on YouTube
No Additional links found for this article
No self-learning content for this article Try some scenarios...
No relevant support links available for this article
|