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:0300_rule_language [2022/09/01 03:09] administratordocs:3000_rule_language:0300_rule_language [2022/09/13 18:15] (current) – external edit 127.0.0.1
Line 7: Line 7:
     ActionList     ActionList
 ELSE  ELSE 
-    ActionList +    ActionList</code>
- </code>+
  
  
Line 18: Line 17:
     ActionList     ActionList
 ELSE ELSE
-    ActionList +    ActionList </code>
- </code>+
  
  
Line 27: Line 25:
  
 Examples of rules: Examples of rules:
-<code aim> +<code aim>IF Account.State='CLOSED' AND Account.Balance<>0 THEN 
-IF Account.State='CLOSED' AND Account.Balance<>0 THEN +    REPORT ERROR 'Account with non-zero balance cannot be closed' </code>
-    REPORT ERROR 'Account with non-zero balance cannot be closed' +
- </code>+
  
-<code aim> +<code aim>CreditAccount.AvailableFunds = CreditAccount.CreditLimit+CreditAccount.Balance-CreditAccount.NonClearedFunds </code>
-CreditAccount.AvailableFunds = CreditAccount.CreditLimit+CreditAccount.Balance-CreditAccount.NonClearedFunds +
- </code>+
  
-<code aim> +<code aim>IF Account.Type IS UNDEFINED THEN 
-IF Account.Type IS UNDEFINED THEN +    FIND AccountType WHERE AccountType.Name='Credit' Account.Type=AccountType </code>
-    FIND AccountType WHERE AccountType.Name='Credit' Account.Type=AccountType +
- </code>+
  
  • Last modified: 2022/09/13 18:09