Reference
This section contains reference information such as system variables, system constants and rule functions.
System Variables
System variables are assigned a value. For example: RULE.MESSAGE = DOUBTFUL
|
Variable name |
Content |
|---|---|
|
RULE.STATUS |
Used within the rule to indicate to the calling process if the test passed or failed. |
|
RULE.MESSAGE |
Used within the rule to return a narrative indicating to the calling process why the rule failed. |
|
RULE.SCORE |
Used within the rule to return a score to the calling process, in those cases where the rule is calculating a score. |
|
RULE.ERROR |
Used within the rule to return a string ID, for lookup in the EB.ERROR table. Used for internationalisation of messages. |
System Constants
System constants can be assigned to a context or variable.
|
Constant name |
Content |
|---|---|
|
CURRENT.OPERATOR |
Current logged user |
|
LOCAL.COUNTRY.OF.BANK |
Bank’s local country |
|
OPERATING.COMPANY |
Current Company where the user has logged in |
|
SECOND.WORKING.DAY |
The date of the next working day |
|
TODAY |
Today's date |
Rule Functions
Rule functions are the constructs supported in the rule script.
|
Description |
Operator |
Example |
|---|---|---|
|
Binary adding operators |
+ - |
RULE.SCORE = I + j – k |
|
Boolean and |
and |
i lt 10 and j rg 10 20 |
|
Boolean or |
or |
i lt 10 or j nr 10 20 |
|
Comparison operators Equals Not equals Less than (numbers only) Less than or equals (numbers only) Greater than (numbers only) Greater than or equals (numbers only) In range (numbers only) Not in range (numbers only) Like (strings only) Unlike (strings only) |
eq ne lt le gt ge rg nr lk ul |
s eq "fred" or i eq 10 s ne "fred" and i ne 10 i lt 10 i le 10 i gt 10 i ge 10 i rg 10 20 i nr 10 20 S lk "...A..." S nl "...A..." |
|
Logical negation |
not |
not (i eq 10 or i lt 7) |
|
Multiplying operators |
* / |
RULE.SCORE = i * j / k |
|
Unary sign operator |
- |
RULE.SCORE = -10 |
In this topic