Additional Configuration in Sitecore Pipeline Processor

When you build custom pipeline processor in Sitecore, often you need to pass additional configurable parameters, like paths to other resources, or some switches, which will able you to change settings without recompiling the code. This can be done in very easy and clean way by adding those parameters inside the typical pipeline processor node and by using Sitecore Configuration Factory helper:

Now in our custom pipeline processor code we need “AddResource” method, which will be called for each resource node from config file. By adding a little more code, we can use our additional configuration in “Process” method:

This method uses Sitecore Configuration Factory generic mechanism, which can be used for other functionalities, not only for pipeline processors.