---
schema_version: "1"
id: 6d0935bf768193ff1ae31e75ffc09e43d6a21654ac90c241ecf3b8efff8c9715
title: Workflow for Calculation Action Example (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_workflow_for_calculation_action_example.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_workflow_for_calculation_action_example.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fd6359213d1dccd41297e80533d7c4f372fcc37127c7e04c12164e5b00f2e1d1
description: For the managed package runtime, an Integration Procedure invokes a calculation procedure, which invokes a calculation matrix. The calculation procedure applies a 15% discount to a quoted amount for an age between 16 and 24 and a GPA of 3.0 or greater.
products:
  - Omnistudio
release: "264"
---
# Workflow for Calculation Action Example (Managed Package)

For the managed package runtime, an Integration Procedure invokes a calculation procedure, which invokes a calculation matrix. The calculation procedure applies a 15% discount to a quoted amount for an age between 16 and 24 and a GPA of 3.0 or greater.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

To download a DataPack of this example, click [here](https://volt.my.salesforce.com/sfc/p/o0000000IKm8/a/3m000000Mh9j/773MFjmVYceqEPm0od3ulakXxZJHGyRas8lxMn.pA3c).

To build this example:

1. [Create the GoodStudentDiscountEligibility Calculation Matrix (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_goodstudentdiscounteligibility_calculation_matrix.htm&release=264.0.0&type=5 "For the managed package runtime, before you can create the Integration Procedure example with a Matrix Action, you must create the GoodStudentDiscountEligibility calculation matrix that it calls. This matrix returns a Qualified value of true for an Age between 16 and 24 and a GPA of 3.0 or greater.").
    
    This is the first task in the example under [Matrix Action for Integration Procedures (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_matrix_action_for_integration_procedures.htm&release=264.0.0&type=5 "For the managed package runtime, the Matrix Action calls a calculation matrix with specified inputs and returns the result to the Integration Procedure.").
2. [Create the GoodStudentDiscountCalculation Calculation Procedure (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_goodstudentdiscountcalculation_calculation_procedure.htm&release=264.0.0&type=5 "For the managed package runtime, the GoodStudentDiscountCalculation calculation procedure calls the GoodStudentDiscountEligibility calculation matrix, which applies a 15% discount to a quoted amount for an Age between 16 and 24 and a GPA of 3.0 or greater.").
3. [Create the Integration Procedure That Invokes the Calculation Procedure (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_integration_procedure_that_invokes_the_calculation_procedure.htm&release=264.0.0&type=5 "For the managed package runtime, the example Integration Procedure calls the GoodStudentDiscountCalculation calculation procedure and returns its result.").

- **[Create the GoodStudentDiscountCalculation Calculation Procedure (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_goodstudentdiscountcalculation_calculation_procedure.htm&release=264.0.0&type=5)**  
    For the managed package runtime, the GoodStudentDiscountCalculation calculation procedure calls the GoodStudentDiscountEligibility calculation matrix, which applies a 15% discount to a quoted amount for an Age between 16 and 24 and a GPA of 3.0 or greater.
- **[Create the Integration Procedure That Invokes the Calculation Procedure (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_the_integration_procedure_that_invokes_the_calculation_procedure.htm&release=264.0.0&type=5)**  
    For the managed package runtime, the example Integration Procedure calls the GoodStudentDiscountCalculation calculation procedure and returns its result.