I am getting the following error when running the pipeline bathc. "Pipeline step is missing at least one required plugin." I have an AddPlugins method in my pipeline step:
protected override void AddPlugins(ItemModel source, PipelineStep pipelineStep)
{
AddEndpointSettings(source, pipelineStep);
}
I also have it in my end point converter. I doesn't look like this gets hit:
protected override void AddPlugins(ItemModel source, Endpoint endpoint)
{
var settings = new ContactSettings();
settings.CollectionName = base.GetStringValue(source, "Collection Name");
endpoint.Plugins.Add(settings);
}
I looked through the DEF dlls using dotPeek, but wasn't quite sure where this error is coming from. What could of I have missed? Thanks.
Processor code:
public class ReadContactsStepProcessor : BaseReadDataStepProcessor
{ public override bool CanProcess(PipelineStep pipelineStep, PipelineContext pipelineContext) { return base.CanProcess(pipelineStep, pipelineContext); } public override void Process(PipelineStep pipelineStep, PipelineContext pipelineContext) { base.Process(pipelineStep, pipelineContext); } protected override void ReadData(Endpoint endpoint, PipelineStep pipelineStep, PipelineContext pipelineContext) { var contactSettings = pipelineStep.GetPlugin(); if (contactSettings != null) { pipelineContext.PipelineBatchContext.Logger.Info( "Hello world! Create some items here..." + contactSettings.CollectionName); }
//add the plugin to the pipeline context
pipelineContext.Plugins.Add(contactSettings);
}
}