For the managed package runtime, if the input to the calculation procedure is an array—for example, multiple family members are applying for insurance and want to view the total premium—the calculation procedure runs for each input. Using an aggregation step, you can aggregate the procedure results and execute additional calculations on the aggregated result.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- On the Vlocity Calculation Procedure Version Detail page, scroll down to the Pricing Calculation section.
- In the Aggregation Step area, click Add Step.
- Select Aggregation.
-
In the first field, enter one of the following operators:
-
SUM
-
AVG
-
MIN
-
MAX
-
- Enter the variable to be aggregated enclosed in parentheses. For example, (price).
- In the second field, enter a variable to represent the aggregated variable. For example, totalPrice.
- Create all the other aggregation steps you need to complete the aggregation.
- Click Save Calculation Procedure.