Rules

  • Updated

A rule is a logical (true/false) condition, with associated actions that happen when the condition is true. Rules can be nested within other rules and can call other rules by name.

Author Studio™ enables users to create rules in different ways, including using Language Rules and Decision Tables

Language Rule

Validate Items.png

Business Language Authoring offers a highly intuitive medium to author rules using English-like syntax and point-and-click authoring. These simple-to-use features further extend InRule's unique ability to efficiently manage sophisticated rules and complex calculations.

A language rule is essentially a condition and associated actions expressed in business language. Read the article, Business Language Tutorials to learn how to use Business Language Authoring, or see the article, Business Language Template Reference to view the Business Language Template Reference.

Learn how to add a Language Rule.

Learn how to delete a Language Rule.

Decision Table

Decision Table.png

A decision table is a powerful technique to represent a set of related business rules in the form of a multi-dimensional matrix. Exceptionally useful in modeling and maintaining complex business situations in a simple manner.

A decision table supports entering a multi-axis grid combining multiple Conditions with resulting Actions.

The resulting matrix of Conditions/Actions is displayed in a precise yet compact tabular manner, as rows of decisions, which can be easily managed by business users.

The decision table evaluates from the top down until it finds a path where all conditions resolve to True. Business experts can easily check the logic represented in a decision table for consistency, completeness, and correctness.

Learn how to add a Decision Table.

Learn how to delete a Decision Table.

For Each

A For Each Rule allows you to execute one or more child rules against each member of a collection.

for each.png

1. Name
Specifies the name of the rule.
2. Collection
The collection to which this rule applies.
While looping through the collection, child rules may not modify the collection.
3. Filter expression
If specified, an expression which will limit which collection members will have the rules applied.
4. Iterator variable
The variable that will be the collection member for the duration of each iteration. Child rules may refer to this collection member and its fields.
You may declare a new variable or use an existing one. If you declare a variable, it will only be available to the child rules. If you use an existing field or variable, after the iterations are complete, this variable will contain the last member iterated.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.