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:0600_rule_language [2022/08/25 00:00] – removed - external edit (Unknown date) 127.0.0.1 | docs:3000_rule_language:0600_rule_language [2025/06/12 02:35] (current) – Rename to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | {{tag> | ||
| + | [< | ||
| + | ====== Special usage of rules ====== | ||
| + | |||
| + | There are several places in the software where the special format of the rule expressions is used. | ||
| + | |||
| + | ===== Rule tables ===== | ||
| + | |||
| + | Inside rule tables some rule expressions can be represented in the simplified format. This can happen only if an attribute identifier is specified in the header of the rule table column or row. For example, if '' | ||
| + | |||
| + | '' | ||
| + | |||
| + | The following expressions can be shortened in cells of a rule table: | ||
| + | |||
| + | ==== Relational expression ==== | ||
| + | |||
| + | Compared to the full form of the relational expression (see section [[0400_rule_language|Relational Expression]]) the shortened version used in rule tables has attribute identifier omitted from the expression. Also when “=” is used it is also omitted from the expression. Examples of shortened relational expressions and the corresponding full versions follow (these assume that the header of the rule table column is '' | ||
| + | |||
| + | - 1000 \\ the corresponding expression in the full form is: \\ '' | ||
| + | - <1000 \\ the corresponding expression in the full form is: \\ '' | ||
| + | - >= Transaction.Amount – 500\\ the corresponding expression in the full form is: \\ '' | ||
| + | ==== String Expression ==== | ||
| + | |||
| + | The short form of the '' | ||
| + | |||
| + | - CONTAINS ' | ||
| + | - '' | ||
| + | |||
| + | |||
| + | |||
| + | ==== List Expression ==== | ||
| + | |||
| + | The short form of the List Expression (see section [[0400_rule_language|List Expression]]) has the attribute identifier omitted from the expression. Also OR is used instead of comma to separate members of the list. The examples, which assume that '' | ||
| + | |||
| + | - ''' | ||
| + | - ''' | ||
| + | |||
| + | |||
| + | |||
| + | ==== Range Expression ==== | ||
| + | |||
| + | The short form of the '' | ||
| + | |||
| + | - BETWEEN 1000 AND 5000 \\ The corresponding expression in the full form is:\\ '' | ||
| + | - 1000-5000\\ the corresponding expression in the full form is:\\ '' | ||
| + | |||
| + | |||
| + | |||
| + | ==== WAS CHANGED expression ==== | ||
| + | |||
| + | The short form of the '' | ||
| + | - WAS CHANGED\\ The corresponding expression in the full form is:\\ '' | ||
| + | - '' | ||
| + | |||
| + | |||
| + | |||
| + | ==== IS UNDEFINED expression ==== | ||
| + | |||
| + | The short form of the '' | ||
| + | - IS UNDEFINED\\ The corresponding expression in the full form is:\\ '' | ||
| + | - IS DEFINED \\ The corresponding expression in the full form is:\\ '' | ||
| + | |||
| + | |||
| + | |||
| + | ==== Assignment action ==== | ||
| + | |||
| + | The short form of the [[a_f: | ||
| + | - 1000\\ the corresponding action in the full form is:\\ '' | ||
| + | - Transaction.Amount*100\\ The corresponding action in the full form is:\\ '' | ||
| + | |||
| + | |||
| + | |||
| + | ==== Incremental action ==== | ||
| + | |||
| + | The short form of the [[a_f: | ||
| + | |||
| + | - INCREASE BY 1000 \\ The corresponding action in the full form is:\\ '' | ||
| + | - +1000\\ the corresponding action in the full form is:\\ '' | ||
| + | - -20%\\ the corresponding action in the full form is:\\ '' | ||
| + | |||
| + | |||
| + | |||
| + | ===== Usage of rules inside tags ===== | ||
| + | |||
| + | Rule expressions can be used inside special tags in documents. The start of the tag is denoted by the symbol “//<//< | ||
| + | |||
| + | - Arithmetic Operations (see section [[0400_rule_language|Arithmetic Operation]]) | ||
| + | - Conditional expressions | ||
| + | - Special expressions identifying boundaries of document sections (MS Word documents only). | ||
| + | |||
| + | |||
| + | |||
| + | ==== Arithmetic Operations ==== | ||
| + | |||
| + | Any '' | ||
| + | |||
| + | <code aim><< | ||
| + | |||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | There are four types of the formatting expression: | ||
| + | |||
| + | |||
| + | - The Date/Time format | ||
| + | - The Number format | ||
| + | - The Duration format. | ||
| + | - HTML format | ||
| + | |||
| + | |||
| + | The examples of rule expressions using formatting expressions inside tags follow: | ||
| + | |||
| + | - ''//<//< | ||
| + | - ''//<//< | ||
| + | - ''//<//< | ||
| + | - ''//<//< | ||
| + | |||
| + | |||
| + | |||
| + | ==== Conditional Expressions ==== | ||
| + | |||
| + | It is possible to indicate that attribute values or static text should be included in a document conditionally. This can be done using conditional expression. The format of this expression is that of any rule that uses condition, except that this expression must use special action called '' | ||
| + | |||
| + | - ''//<//< | ||
| + | - ''//<//< | ||
| + | |||
| + | |||
| + | |||
| + | ==== Expressions marking section boundaries ==== | ||
| + | |||
| + | It is possible to conditionally include entire sections of a document template in the final document. To do this you need to specify the condition of inclusion, mark the start of the section to be included in the document and mark the end of the section in the document. Condition is specified using the conditional expression with the special action '' | ||
| + | |||
| + | <code aim><< | ||
| + | The text of the section follows ... | ||
| + | << | ||
| + | The rest of the text follows </ | ||
| + | |||
| + | |||
| + | <callout type=" | ||
| + | |||
| + | |||
| + | |||
| + | ===== Report Designer ===== | ||
| + | |||
| + | When rule expressions are used inside tags in the Report Designer the following additional construct can be used: | ||
| + | |||
| + | < | ||
| + | |||
| + | |||
| + | where '' | ||
| + | |||
| + | <code aim><< | ||
| + | |||
| + | **Note**: the report parameter expression can only be used inside the Report Designer. | ||
| + | |||
| + | |||
| + | |||
| + | ===== Queries ===== | ||
| + | |||
| + | In // | ||
| + | |||
| + | |||
| + | The action can use ''?'' | ||
| + | |||
| + | <code aim>FIND Account WHERE Account.Balance > ? | ||
| + | |||
| + | When such a query is executed, the user is asked to enter the specific value of the account balance. The “Balance” string after the question mark indicates the name of the prompt that will be displayed to the user. See also the “[[docs: | ||