Implement a pipeline step processor
You use a processor to implement the business logic for a component. In this example, a processor is needed to implement the business logic for the pipeline step responsible for reading data from the text file that corresponds to the endpoint assigned to the pipeline step.
A pipeline step does not exist in a vacuum. It is designed to be a part of a data synchronization process. This means that the processor for a pipeline step might require certain conditions to exist when it runs. In this example, the processor requires that a TextFileSettings plugin is included in the endpoint’s plugin collection.
A processor might also create conditions that are required by subsequent pipeline steps. In this example, the processor adds a plugin IterableDataSettings to the pipeline context’s plugin collection.
To implement a pipeline step processor:
-
In Visual Studio, add the following class:
NoteBy inheriting from BaseReadDataStepProcessor you get access to methods that facilitate reading data from an endpoint.
The base class does not specify what happens with the data that is read. Instead, the data is added to an IterableDataSettings plugin. You can implement a subsequent pipeline step processor to iterate over the data and specify how it is handled.
-
Compile the project.
-
Deploy
Examples.DataExchange.Providers.FileSystem.dllto the Sitecore server.