You are here:
Abstraction Framework Methods and Patterns (Managed Package)
The abstraction framework is implemented using Integration Procedures and Apex classes. The Apex classes include several methods and patterns that are used to fetch data from a specified order, match the input expected to the input received from the workflow, and then update the data based on the input received from the workflow.
This feature is part of the Communications Cloud managed package.
Updates to data can include adding or removing a product, setting a field, or updating an attribute. The abstraction framework also provides methods to run pricing on the order.
The abstraction framework provides the following methods and patterns:
Method |
Pattern |
Description |
|---|---|---|
GetData |
None |
The GetData method takes the input received from the workflow and queries the custom metadata table. Based on the input, it returns either a specific row or a set of rows from the custom metadata table. |
MatchData |
None |
The MatchData method maps the target from the custom metadata to the values that are passed to the abstraction framework from the workflow. |
PostData |
|
The PostData method performs specific operations on the underlying product model, based on the input received from the workflow. The PostData method includes various patterns to perform the following actions:
|
Pricing |
None |
The Pricing method can be called after a PostData method such as SetAttributes, AddProduct, or Disconnect Product. This method runs the pricing API. This is useful when various changes have been made to the order using PostData methods without running pricing. Running PostData methods without pricing improves performance and can also help you to avoid hitting Salesforce governor limits per transaction. Pricing can be run either for the entire order using the getCartsItems API, or for a specified line item using the getCartsItemsById API. |

