OrchestrationPlanCtxMapping defines the context mapping that Dynamic Revenue Orchestrator (DRO) uses to generate and orchestrate a plan for an object. It connects an orchestration use case and source object to a context definition, which describes the nodes that hold source data. Its scope includes non-sales transactions for billing and generic business processes, not only order fulfillment.
This component identifies how source fields populate that context and which nodes represent parent and child records. It does not define the order in which orchestration steps execute.
Key Elements
| Element | What the Element Controls |
|---|---|
objectName |
Required. API name of the object for which the plan is generated. The combination of objectName and orchestrationType must be unique. Standard objects are supported; Order is a documented example. |
orchestrationType |
Required. Kind of plan to which the mapping applies. Allowed values are Billing, Fulfillment, Generic, IntegrationOrchestrator, InsuranceRuleAction, OrderFulfillment, and StageManagement. Fulfillment and OrderFulfillment are distinct values. |
contextDefinition |
Required. References the ContextDefinition on which the orchestration use case is based. |
contextMapping |
Required. Names the mapping that maps source object fields to nodes in the context definition. |
contextRootNode |
Required. Names the node representing the parent record for which the plan is generated. |
contextItemNode |
Optional. Names the item-level node representing line items or child records of the root node. |
Behavior and Constraints
The object and plan type form a unique pair. This constraint is separate from the component's inherited fullName identity. Giving a second component a different name does not allow another mapping for the same objectName and orchestrationType.
contextDefinition and contextMapping work together: the first selects the context model, and the second identifies how source fields populate it. The values of contextRootNode and contextItemNode are node names within that definition, so their meaning depends on the selected definition. Interpret the source object, mapping, and nodes together rather than treating the node names as independent settings.
The documented fulfillment example uses objectName set to Order, orchestrationType set to Fulfillment, contextDefinition set to SalesTransactionContext__stdctx, and contextMapping set to OrderEntitiesMapping. Its root and item nodes are SalesTransaction and SalesTransactionItem. These are example values, not defaults or requirements for other mappings.
label is also required and supplies the mapping's UI label. The parent/item structure describes records in the context model, not orchestration step order.
Deployment and Retrieval
Components use the .orchestrationPlanCtxMapping suffix and reside in the orchestrationPlanCtxMappings folder. In package.xml, use OrchestrationPlanCtxMapping as the metadata type name. The type supports * in the manifest's members element for wildcard selection. See Deploying and Retrieving Metadata with the Zip File.
This type extends Metadata and inherits fullName. When assessing deployment conflicts, compare both component names and the objectName/orchestrationType pair. A component-name comparison alone does not detect every uniqueness conflict.
When moving a mapping, check the selected context definition, the named source-field mapping, and the node names together. The parent and item node names must be interpreted within the selected context definition; matching an object name alone does not establish that the context configuration matches.
Relationships
The main connections are the context definition that supplies the data structure and the object for which the plan is generated. The object relationship is not limited to custom objects.
References
-
ContextDefinition:contextDefinition. See the ContextDefinition reference. -
CustomObject:objectName, using the source object's API name.Orderis a documented standard-object example.
Common Questions
Can I deploy two mappings for the same object and orchestration type?
No. The combination of objectName and orchestrationType must be unique. A different fullName does not bypass that constraint.
Are Fulfillment and OrderFulfillment interchangeable?
No. Fulfillment and OrderFulfillment are distinct allowed values of orchestrationType. The documented order example uses Fulfillment.
Is contextItemNode required?
No. contextItemNode is optional and identifies the node for line items or child records. contextRootNode is required and identifies the parent-record node.
How do I retrieve all OrchestrationPlanCtxMapping components?
Use OrchestrationPlanCtxMapping as the type name and * as the member in package.xml. The component files use the .orchestrationPlanCtxMapping suffix in the orchestrationPlanCtxMappings folder.
Does this mapping control orchestration step order?
No. It connects an object and plan type to a context definition, source-field mapping, and parent/item nodes. Those node relationships describe the context model, not the execution order of orchestration steps.