Table of Contents

,

Notes on rule execution

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:

note

no arithmetic operations with date/timestamp may be used inside the FIND action.

Comparison

The following rules apply when comparing values in the Relational Expression:

All attribute types can be compared for equality or non-equality (even references), provided that the types on both sides are compatible. If the types are the same on both sides, they are always compatible. If they are different, the following rules apply:

Only numbers, dates and durations can be compared using other operators (<, >, <=, >=).

References

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:

IF Customer.Policies.Cartype='Wagon' THEN 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.

The following rule:

IF Policy.CarType='Wagon' THEN Customer.CurrentPolicy=Policy 

will set the policy, the car type of which is “wagon”, as the policy of the customer.

If multiple references are used in a rule condition the corresponding action will be triggered if the condition holds for ANY value of the reference in the reference list. For example,

IF Customer.Policies.CarType='Wagon' THEN ... 

The action in this rule will be executed if there is any Policy that the Customer owns that has the Wagon car type.