Aggregate Operations

In the Context section we have mentioned that there is one exception to the fact that Aware IM looks for instances of the business objects to work with in the Context. This exception applies to aggregate operations. Aggregate operations are those rule expressions that start with keywords EXISTS, COUNT, SUM, MIN, MAX, AVG (see EXISTS Expression and Aggregate Calculations). When such an expression is encountered Aware IM always looks at all data available in the database and considers all instances in the database that match the conditions of the aggregate operation, not only instances in the Context. For example,

IF EXISTS Policy WHERE Policy.Excess > 1000 Then DoSomething 

Here Aware IM looks at all existing policies in the database to find out if there is any policy with excess greater than one thousand dollars.

Let us now have a look at what happens when the conditions of a rule have been met and the corresponding action(s) are triggered. See Action Execution.

  • Last modified: 2022/09/13 18:15