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:0700_rule_language [2022/08/31 06:51] – [References] administrator | docs:3000_rule_language:0700_rule_language [2025/06/12 02:35] (current) – Rename to AwareIM aware_support3 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Type conversions ===== | ===== Type conversions ===== | ||
| - | When performing arithmetic calculations with attribute values and numeric constants //**Aware IM**// automatically performs the necessary type conversions if arguments are of different types. The following conversion rules apply: | + | When performing arithmetic calculations with attribute values and numeric constants //**AwareIM**// automatically performs the necessary type conversions if arguments are of different types. The following conversion rules apply: |
| * Addition of two strings causes the strings to be concatenated, | * Addition of two strings causes the strings to be concatenated, | ||
| Line 16: | Line 16: | ||
| * Duration added or subtracted from a date produces date. | * Duration added or subtracted from a date produces date. | ||
| * No other arithmetic operations with date/ | * No other arithmetic operations with date/ | ||
| - | **Note**: | + | <callout type=" |
| * Duration added to or subtracted from another Duration produces Duration | * Duration added to or subtracted from another Duration produces Duration | ||
| * Attributes of the '' | * Attributes of the '' | ||
| Line 31: | Line 31: | ||
| * If a value of an attribute is '' | * If a value of an attribute is '' | ||
| - | Only numbers, dates and durations can be compared using other operators (''<'', | + | Only numbers, dates and durations can be compared using other operators (''<'', |
| Line 39: | Line 39: | ||
| It is possible to use references and reference lists inside rule conditions and assign reference and reference lists in actions. For example, the following rule: | It is possible to use references and reference lists inside rule conditions and assign reference and reference lists in actions. For example, the following rule: | ||
| - | <code aim> IF Customer.Policies.Cartype=' | + | <code aim>IF Customer.Policies.Cartype=' |
| - | Customer.Policies.Premium=100</ | + | |
| will check every policy in the list of policies of a customer and if a car type of the policy is wagon will set the premium of such policy to 100. | will check every policy in the list of policies of a customer and if a car type of the policy is wagon will set the premium of such policy to 100. | ||
| Line 46: | Line 45: | ||
| The following rule: | The following rule: | ||
| - | <code aim> IF Policy.CarType=' | + | <code aim>IF Policy.CarType=' |
| - | Customer.CurrentPolicy=Policy</ | + | |
| Line 55: | Line 53: | ||
| - | <code aim> IF Customer.Policies.CarType=' | + | <code aim>IF Customer.Policies.CarType=' |
| The action in this rule will be executed if there is any '' | The action in this rule will be executed if there is any '' | ||