Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:3000_rule_language:0300_rule_language [2022/08/18 12:28] – removed - external edit (Unknown date) 127.0.0.1 | docs:3000_rule_language:0300_rule_language [2022/09/13 18:15] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | [< | ||
| + | ====== Rule Definition ====== | ||
| + | Rule is defined as follows: | ||
| + | <code aim> | ||
| + | IF (RuleCondition) THEN | ||
| + | ActionList | ||
| + | ELSE | ||
| + | ActionList</ | ||
| + | |||
| + | |||
| + | where '' | ||
| + | <code aim> | ||
| + | IF (RuleCondition) THEN | ||
| + | ActionList | ||
| + | ELSE IF (RuleCondition) THEN | ||
| + | ActionList | ||
| + | ELSE | ||
| + | ActionList </ | ||
| + | |||
| + | |||
| + | Rules operate on business objects and/or their attributes, i.e. both the condition and action parts of a rule may refer to a business object and its attribute. Business objects are referred to by name, for example Account. Attributes of a business object are referred to by the attribute name where the name of the attribute is separated from the name of the business object by the dot symbol, for example '' | ||
| + | |||
| + | |||
| + | |||
| + | Examples of rules: | ||
| + | <code aim>IF Account.State=' | ||
| + | REPORT ERROR ' | ||
| + | |||
| + | <code aim> | ||
| + | |||
| + | <code aim>IF Account.Type IS UNDEFINED THEN | ||
| + | FIND AccountType WHERE AccountType.Name=' | ||