Enter count and sum expressions in business rules
About this task
To enter a count or sum expression:
Procedure
- In Rule Condition, click Add.
-
To the right of the expression, click the down arrow and select
Count or
Sum.
For this example, select Count.
- Click Set fields and condition to display the Count or Sum popup screen.
-
In In This List, type space to select
from available objects. When you start typing, autocomplete shows you
available objects, properties, and methods based on the rule context
and filtered by the text you enter. The expression must evaluate to a
list.
For this example, select the list policyDrivers.
-
Select the type of count, and specify
conditions of items to count.
Below the condition table, the formatted view displays the complete rule condition with the count or sum that you are editing highlighted in yellow.
For this example, set the condition to:
policyDriver.Age > 18
