CMP pipelines
Version: 3.0
The Sitecore Content Marketing Platform (CMP) connector adds one new processor to the <initialize> pipeline, and one new <cmp.importEntity> pipeline, including three new processors. The pipelines are defined in the App_Config/Modules/Sitecore.Connector.CMP/Sitecore.Connector.CMP.config file.
The initialize pipeline
The initialize pipeline
The <initialize> pipeline is used to initialize the Azure Service Bus listener. For CMP, the following processor is added:
- Processor: Description
InitializeServiceBus: Initializes the Azure Service Bus listener that runs the <cmp.importEntity> pipeline when a new message appears in the topic’s subscription.The InitializeServiceBus processor does the following the config item, reads the connection information, and initializes a topic client and a subscription client.If a message is triggered, the ProcessMessagesAsync action is run runs the <cmp.importEntity> pipeline.Then, it checks the ImportEntityPipelineArgs pipeline and sends a message back to the Bus. For example to the log file. For example:
The cmp.importEntity pipeline
The cmp.importEntity pipeline
The <cmp.importEntity> pipeline is used to import entities. It includes the following processors:
| Processor | Description |
|---|---|
FetchEntity | Gets an entity by ID. The FetchEntity processor does the following:
|
EnsureItem | Gets the entity mapping item and finds the EntityIdentifier field.The EnsureItem processor does the following:
|
SaveItem | Saves the item to Sitecore. The SaveItem processor does the following:
|
If you have suggestions for improving this article, let us know!