Differences

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

Link to this comparison view

Both sides previous revision Previous revision
3000_rule_language:0400_rule_language [2026/08/13 07:33] – Imported by DokuWiki Advanced Plugin aware_support33000_rule_language:0400_rule_language [2026/09/07 05:03] (current) – aware_support3
Line 6: Line 6:
 The formal definition of the 'RuleCondition' in the BNF notation is: The formal definition of the 'RuleCondition' in the BNF notation is:
  
-<code>PredicateExpression ()+<code aim>PredicateExpression ()
   (   (
      "OR" PredicateExpression()      "OR" PredicateExpression()
Line 98: Line 98:
  
 SUM, MIN, MAX, AVG calculations must not use attributes of the Reference type, for example the following expression is not valid:\\ ''SUM Account.Transactions.Amount''\\ IF aggregate of the referred object is required as in the example above, the following expression must be used:\\ ''SUM Transaction.Amount WHERE (Transaction IN Loan.Transactions)''</alert>  SUM, MIN, MAX, AVG calculations must not use attributes of the Reference type, for example the following expression is not valid:\\ ''SUM Account.Transactions.Amount''\\ IF aggregate of the referred object is required as in the example above, the following expression must be used:\\ ''SUM Transaction.Amount WHERE (Transaction IN Loan.Transactions)''</alert> 
 +
 <alert type="primary" icon="fa info-circle"> <alert type="primary" icon="fa info-circle">
 **note** **note**
  
- COUNT operation MUST only use the name of the business object, which it counts, for example, \\ <code aim>COUNT Account or COUNT Account WHERE (Account.State='Open') </code>. </alert> +COUNT operation MUST only use the name of the business object, which it counts, for example, \\ <code aim>COUNT Account or COUNT Account WHERE (Account.State='Open') </code> </alert> 
 + 
 <alert type="primary" icon="fa info-circle"> <alert type="primary" icon="fa info-circle">
 **note** **note**
  
- Using references is not allowed, for example the following construct is invalid:<code aim>COUNT Account.Transactions </code>The valid expression that achieves the desired result is:<code aim>COUNT Transaction WHERE (Transaction IN Account.Transactions) </code>+Using references is not allowed, for example the following construct is invalid:<code aim>COUNT Account.Transactions </code>The valid expression that achieves the desired result is:<code aim>COUNT Transaction WHERE (Transaction IN Account.Transactions) </code>
 </alert> </alert>