1. Integration service layers

Service method pipelines

Version:

Each service method launches a pipeline with the same name. As part of the initial pipeline being executed, one or more additional or shared pipelines can be called and executed. For example, SaveCart or SynchronizeProductArtifacts.

In Sitecore, the default pipeline arguments contain Request and Result properties, which have Properties of type dictionary, and can contain arbitrary data to be used by pipeline processors.

Commerce Connect uses the Request.Properties dictionary to store data that you need to synchronize. There are processors that read and write the custom data.

Values that are stored in Request.Properties  are internal temporary data used to carry information between the processors in the pipeline. For example, the CreateOrResumePipeline includes the FindCartInEAState processor that stores the ID of the cart. This ID is then used in the RunLoadCart processor to specify the ID of the cart to be loaded.

Data read and stored in the Request.Properties dictionary is visible between processors within the pipeline.

The following table contains a description of the cart data related to the pipelines stored in the pipeline arguments Request.Properties:

PipelineProperty nameData description
CreateOrResumeCartCartIdHolds the ID of the cart found in the writer processor and consumed by the reader processor in order to load the cart from the external system.

Writer processor:

FindCartInEaState

Reader processor:

RunLoadCart
ResumeCartCartSourceStateIdHolds the ID of the cart state that the MoveVisitorToInitialState processor moves visitors from.

Writer processor:

CheckCanBeResumed

Reader processor:

MoveVisitorToInitialState
CartDestinationStateIdHolds the ID of the cart state that the MoveVisitorToInitialState processor moves visitors to.

Writer processor:

CheckCanBeResumed

Reader processor:

MoveVisitorToInitialState

The following table contains the data of the product related pipelines:

PipelineProperty nameCustom data description
GetSitecoreProductListSitecoreProductIdsHolds a list of the product IDs of Sitecore.

Writer processor

GetSitecoreProductList

Reader processor

EvaluateProductListUnionToSynchronize
SynchronizeClassificationsSitecoreClassificationGroupsHolds the classification groups in Sitecore to be synchronized.

Writer processor:

ReadSitecoreClassifications

Reader processor

ResolveClassificationsChanges
ClassificationGroupsHolds the classification groups in the external commerce system to be synchronized.

Writer processor:

ReadExternalCommerceSystemClassifications

Reader processors:

  • ResolveClassificationsChanges
  • SaveProductClassificationsToSitecore
SynchronizeClassificationsSpecificationsProductClassificationGroupsHolds the product classification groups to be synchronized.

Writer processor:

ReadExternalCommerceSystemClassificationsSpecifications

Reader processor:

SaveClassificationsSpecificationsToSitecore
SynchronizeDivisionsSitecoreDivisionsHolds product divisions in Sitecore to be synchronized.

Writer processor:

ReadSitecoreDivisions

Reader Processor:

ResolveDivisionsChanges
DivisionsHolds the product divisions in the external commerce system to be synchronized.

Writer processors:

ResolveManufacturersChanges

ReadExternalCommerceSystemManufacturers

Reader processor:

ResolveDivisionsChanges
SynchronizeManufacturersSitecoreManufacturersHolds the Sitecore manufacturer to be synchronized.

Writer processor:

ReadSitecoreManufacturers

Reader processor:

ResolveManufacturersChanges
ManufacturersHolds a list of the manufacturers in the external commerce system to be synchronized.

Writer processor:

ReadExternalCommerceSystemManufacturers

Reader processors:

  • ResolveManufacturersChanges
  • SaveManufacturersToSitecore
SynchronizeProductEntityProductFromSitecoreHolds the products in Sitecore to be synchronized with the external commerce system.

Writer processor:

ReadProductFromSitecore

Reader processor:

ResolveProductChanges
ProductHolds a product from the external commerce system with Sitecore.

Writer processor:

  • ReadExternalCommerceSystemProduct
  • ResolveProductChanges


Reader processor:

ResolveProductChanges
SynchronizeTypesSitecoreProductTypesHolds the product types in Sitecore to be synchronized with the external commerce systems.

Writer processor:

ReadSitecoreTypes

Reader processor:

ResolveTypesChanges
ProductTypesHolds the product types in the external commerce systems to be synchronized with Sitecore.

Writer processor:

ReadExternalCommerceSystemTypes

Reader processors:

  • ResolveTypesChanges
  • SaveTypesToSitecore
SynchronizeGlobalSpecificationsSpecificationsHolds the product specifications to be synchronized.

Writer processor:

ReadExternalCommerceSystemGlobalSpecifications

Reader processor:

SaveGlobalSpecificationsToSitecore
SynchronizeProductDivisionsDivisionIdsHolds the division IDs to be synchronized.

Write processor:

ReadExternalCommerceSystemProductDivisions

Reader processor:

SaveProductDivisionsToSitecore
SynchronizeProductManufacturersManufacturerIdsHolds the manufacturer IDs to be synchronized.

Writer processor:

ReadExternalCommerceSystemProductManufacturers

Reader processor:

SaveProductManufacturersToSitecore
SynchronizeProductResourcesProductResourcesHolds the product resources to be synchronized.

Writer processor:

ReadExternalCommerceSystemProductResourceBase

Reader processor:

SaveProductResourcesToSitecore
SynchronizeProductsExternalCommerceSystemProductIdsHolds the product IDs in the external commerce systems to be synchronized.

Writer processor:

GetExternalCommerceSystemProductList (pipeline: GetExternalCommerceSystemProductList)

Reader processor:

EvaluateProductListUnionToSynchronize
SynchronizeProductTypesProductTypeIdsHolds the product type IDs to be synchronized.

Writer processor:

ReadExternalCommerceSystemProductTypes

Reader processor:

SaveProductTypesToSitecore
SynchronizeResourcesResourcesHolds the product resources to be synchronized.

Writer processor:

ReadExternalCommerceSystemResources

Reader processor:

SaveResourcesToSitecore
SynchronizeProductRelationsRelatedProductsHolds the related products to be synchronized.

Writer processor:

ReadExternalCommerceSystemProductRelationsBase

Reader processor:

SaveProductRelationsToSitecore
SynchronizeTypeSpecificationsSpecificationCollectionHolds the specification collection to be synchronized.

Writer processor:

ReadSitecoreTypeSpecifications

Reader processor:

SaveTypeSpecificationsToExternalCommerceSystem
If you have suggestions for improving this article, let us know!