---
schema_version: "1"
id: 6d6186f3e9ede2b16d2a8ddde56bfe7b7915ea5b809f7df71845298674d0c001
title: Create and Map Context Definitions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/consumption_framework_create_and_map_context_definitions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.consumption_framework_create_and_map_context_definitions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d0c867874c56eaa6b8c894d7954700e22c420f2fe2c43ece323d787a3267e106
description: Define the context structure in which you want to determine the parameters for Integration Orchestration. The data from the context service is mapped as inputs to the Business Rules Engine (BRE).
products:
  - Financial Services
release: "264"
---
# Create and Map Context Definitions

Define the context structure in which you want to determine the parameters for Integration Orchestration. The data from the context service is mapped as inputs to the Business Rules Engine (BRE).

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in Lightning Experience in <strong>Developer</strong>,&nbsp;<strong>Enterprise</strong>,&nbsp;<strong>Professional</strong>, and&nbsp;<strong>Unlimited</strong>editions for Industries clouds where Context Service is enabled.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d200785e66">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d200785e66 ">To create context definitions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d200785e66 ">Context Service Admin</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d200785e66 ">To run context definitions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d200785e66 ">Context Service Runtime</td>

          </tr>
        </tbody>
      </table>

Context Service defines the relationship between the nodes and the attributes within each node. By using nodes and attributes, your users can easily access relevant data from the mapped data source. 

1. Create the context definition for a root node, and add relevant attributes.
    
    For example, add ApplicationForm as the root node, and add the Name and Stage attributes. For more information on how to create a context definition, see [Create Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_create_context_definitions.htm&type=5&language=en_US).
2. Create child node or sibling node with the relevant attributes.
    
    For example, add Applicant and ApplicationFormProduct as child or sibling nodes. For more information on how to create a context definition, see [Create Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_create_context_definitions.htm&type=5&language=en_US).
3. Create a sibling node and call it Integrations.
4. Add attributes for the root node and child node. For example, for ApplicationForm and Applicant child node, add Name, Stage, and UsageType and select the appropriate Type and Data Type.
5. Add attributes for the Integrations node: RunAsUserId, IntegrationProviderDefId, RelatedObject, Status, and Id. The attributes under Integrations are fixed and are mapped as output to the decision table.
    
    ![Integrations node with attributes.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-financial_services-264-0-0-production-enus/bbbfcd84-ccb2-4c2c-bf0e-04dbacfadfb4/financial_services/images/data_consumption_framework/context_definition_details.png)
6. To create attribute tags, click **Generate All Tags**.
    
    The tag names should exactly match the attribute names.
7. For the Integrations node, enter the tag name as IntegrationProviderDcsnRqmt.
8. Save your changes.
9. Open the custom context definition created.
10. Add mapping to the context definition.
11. For the Mapping Definition Details, enter a name and description.
12. Select both **Automatic Salesforce object mapping** and **Mark as Default**.
13. Click **Next** and then click **Map**.
14. Click **Connect Objects**.
15. For Select Data Sources, look for and select the IntegrationProviderDcsnRqmt object.
16. Map the attributes of the context definition to the sObjects. For example, in Integration Orchestration, map the attributes with the Integration Provider Decision Requirement object as shown in the image.
    
    ![Context definition attributes mapped to sObjects.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-financial_services-264-0-0-production-enus/bbbfcd84-ccb2-4c2c-bf0e-04dbacfadfb4/financial_services/images/data_consumption_framework/definition_map.png)
    
    Mapping the Status attribute isn't required.
17. Map the attributes as inputs for the decision table.
    
    ![ApplicationForm object defined in Context Service with Stage and Name attributes.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-financial_services-264-0-0-production-enus/bbbfcd84-ccb2-4c2c-bf0e-04dbacfadfb4/financial_services/images/data_consumption_framework/context_definition.png)
    
    After the fields are mapped, the data from the context service are used for the input and output parameters in the decision table.
18. Activate the context definition.

#### See Also

- [_Salesforce Help_: Map Context Definitions](https://help.salesforce.com/s/articleView?id=ind.context_service_map_context_definitions.htm&type=5&language=en_US)