Project: mule
Issue MULE-7137: DefaultMessageProcessor chain needs to decouple from Pipeline
DefaultMessageProcessorChain decides how to handle VoidMuleEvent on whether the flowConstruct is a Service or a Flow. This is done by testing the flowConstruct to be an instance of Pipeline. Now that the batch module has been introduced, we have a new type of FlowConstruct which is not a Service but not a Pipeline either, which causes errors when one-way outbound endpoints are used in batch. DefaultMessageProcessorChain should be changed so that it takes decisions based on the flowConstruct being an instance of Service only
Story points: 3