Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docs:3000_rule_language:0600_rule_language [2022/08/26 01:55] – ↷ Links adapted because of a move operation administratordocs:3000_rule_language:0600_rule_language [2025/06/12 02:35] (current) – Rename to AwareIM aware_support3
Line 66: Line 66:
 ==== Assignment action ==== ==== Assignment action ====
  
-The short form of the [[actions_functionslists:3100_actions:0010_assignment|assignment action]] has the attribute identifier omitted from the action. The examples, which assume that ''Account.Balance'' is the header of the column, follow:+The short form of the [[a_f:a:assignment|assignment action]] has the attribute identifier omitted from the action. The examples, which assume that ''Account.Balance'' is the header of the column, follow:
   - 1000\\ the corresponding action in the full form is:\\ '' Account.Balance = 1000''   - 1000\\ the corresponding action in the full form is:\\ '' Account.Balance = 1000''
   - Transaction.Amount*100\\ The corresponding action in the full form is:\\  ''Account.Balance = Transaction.Amount * 100''   - Transaction.Amount*100\\ The corresponding action in the full form is:\\  ''Account.Balance = Transaction.Amount * 100''
Line 74: Line 74:
 ==== Incremental action ==== ==== Incremental action ====
  
-The short form of the [[actions_functionslists:3100_actions:0020_increment|incremental action]]) has the attribute identifier omitted from the action. “+” and “-“ signs can also be used to indicate whether the ''INCREASE'' or ''REDUCE'' operation is used. The examples, which assume that ''Account.Balance'' is the header of the column, follow:+The short form of the [[a_f:a:increment|incremental action]]) has the attribute identifier omitted from the action. “+” and “-“ signs can also be used to indicate whether the ''INCREASE'' or ''REDUCE'' operation is used. The examples, which assume that ''Account.Balance'' is the header of the column, follow:
  
   - INCREASE BY 1000 \\ The corresponding action in the full form is:\\ ''INCREASE Account.Balance BY 1000''   - INCREASE BY 1000 \\ The corresponding action in the full form is:\\ ''INCREASE Account.Balance BY 1000''
Line 96: Line 96:
 Any ''Arithmetic Operation'' can be used inside a tag, for example: Any ''Arithmetic Operation'' can be used inside a tag, for example:
  
-<code><<Account.Balance>> or <<Account.Balance + 1000>></code>+<code aim><<Account.Balance>> </code><code aim><<Account.Balance + 1000>> </code>
  
  
Line 133: Line 133:
 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 ''SHOW SECTION_START''. This also marks the start of the section. To mark the end of the section include, the following tag: ''//<//<SECTION_END//>//>''. For example, 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 ''SHOW SECTION_START''. This also marks the start of the section. To mark the end of the section include, the following tag: ''//<//<SECTION_END//>//>''. For example,
  
-<code> +<code aim><<IF Account.Balance > 1000 THEN SHOW SECTION_START>> 
-<<IF Account.Balance > 1000 THEN SHOW SECTION_START>> + The text of the section follows ... 
-The text of the section follows ... + <<SECTION_END> 
-<<SECTION_END> + The rest of the text follows </code>
-The rest of the text follows +
-</code>+
  
  
-//**Note**//: conditional inclusion of document sections is only available for MS Word document templates. MS Word document templates also support inclusion of sub-documents.+<callout type="primary" icon="true" title="note">conditional inclusion of document sections is only available for MS Word document templates. MS Word document templates also support inclusion of sub-documents.</callout>
  
  
Line 149: Line 147:
 When rule expressions are used inside tags in the Report Designer the following additional construct can be used: When rule expressions are used inside tags in the Report Designer the following additional construct can be used:
  
-<code>{ Id () }</code>+<code>{ Id () } </code>
  
  
 where ''Id()'' indicates the name of the report parameter. Before the report using some parameter(s) is executed the user is asked to provide the specific values of the report parameter(s). During the report calculation report parameters are replaced with values provided by the user. For example: where ''Id()'' indicates the name of the report parameter. Before the report using some parameter(s) is executed the user is asked to provide the specific values of the report parameter(s). During the report calculation report parameters are replaced with values provided by the user. For example:
  
-<code><<{REPORT_NAME}>></code>+<code aim><<{REPORT_NAME}>> </code>
  
 **Note**: the report parameter expression can only be used inside the Report Designer. **Note**: the report parameter expression can only be used inside the Report Designer.
Line 162: Line 160:
 ===== Queries ===== ===== Queries =====
  
-In //**Aware IM**// queries can be defined using the Rule Language. The only Rule Language construct that can be used when constructing queries is the ''FIND'' action (see section [[docs:3000_rule_language:0500_rule_language|FIND Action]]). +In //**AwareIM**// queries can be defined using the Rule Language. The only Rule Language construct that can be used when constructing queries is the ''FIND'' action (see section [[docs:3000_rule_language:0500_rule_language|FIND Action]]). 
  
  
 The action can use ''?'' symbol to indicate that the value of the attribute used in the query should be prompted to the user when the query is executed. For example, The action can use ''?'' symbol to indicate that the value of the attribute used in the query should be prompted to the user when the query is executed. For example,
  
-''FIND Account WHERE Account.Balance > ?Balance''+<code aim>FIND Account WHERE Account.Balance > ?Balance'' </code>
  
 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:2000_concepts:0600_data_retrieval:0100_config_queries|Configuring Queries]]” section”. 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:2000_concepts:0600_data_retrieval:0100_config_queries|Configuring Queries]]” section”.
  • Last modified: 2022/09/13 18:09