Loading
Prepare for Email to Become the Default Login ExperienceRead More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Calculation Procedures and Matrices (Managed Package)

Calculation Procedures and Matrices (Managed Package)

For the managed package runtime, a calculation procedure is a series of calculations performed on matrix lookups and user-defined variables and constants. A calculation matrix is a table that looks up information using multiple input dimensions and returns the corresponding output value.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

Calculation Procedures and Matrices

An Expression Set calls a Decision Matrix to get a quote.

Calculation procedures and matrices can automate the creation of complex quotes. Together these can guide a customer or agent through a series of questions, pull data from various sources, and present one or more customized quotes or eligibility determinations. These can be quotes or eligibility determinations for:

  • An individual health insurance plan via a website to a customer

  • A term life quote via an agent

  • A volume discount on an order

  • A permit or application fee

  • A person applying for benefits or services

Calculation procedures and matrices accept input from a Salesforce form, REST API, Omniscript, or Integration Procedure (in the data JSON). Inputs can come from more than one source. The output can be a proposal or PDF, or data for populating an Omniscript, Integration Procedure, form, list, JSON structure, or REST API request.

  • Calculation Example for Life Insurance Quote (Managed Package)
    For the managed package runtime, to provide an accurate quote, an agent must know a person’s age, home ZIP code, and whether they smoke. First, a form prompts for the needed data, from an agent or web self-service. When the form is submitted, a calculation procedure defined for that form runs. The first procedure step is a Matrix Lookup, which looks across the matrix input fields—Smoker, ZIP, and Age—to find the corresponding output (Rate).
  • Calculation Matrices (Managed Package)
    For the managed package runtime, calculation matrices are one of the key elements of a Vlocity rating engine. Vlocity uses calculation matrices to look up inputs, match them to outputs, and provide the outputs to calculation procedures.
  • Calculation Procedures Overview (Managed Package)
    For the managed package runtime, a Calculation Procedure is a series of calculations performed using matrix lookups and user-defined variables and constants. A calculation procedure can call Apex classes for pre- and post-calculation custom logic. Calculation procedures are part of pricing rules.
  • Declarative Calculation Procedures (Managed Package)
    For the managed package runtime, declarative calculation procedures are a key component of the ratings engine. Along with calculation matrices, calculation procedures are the key components of any or ratings engine. Calculation procedures take an input JSON and run through a series of matrix lookups (calling values from calculation matrices) and calculations to calculate ratings for policy products.
 
Loading
Salesforce Help | Article