java - Mule scatter gather custom aggregation get message processor -
im using scatter gather with custom aggregationstrategy. several web service consumers in scatter gather. , need retrieve information consumers such message processor name, original payload, outbound address, etc events..
something that:
public class customaggregation implements aggregationstrategy { @override public muleevent aggregate(aggregationcontext context) throws muleexception { (muleevent event : context.collecteventswithoutexceptions()) { ...get message processor name event... ...get message processor payload event... } (muleevent event : context.collecteventswithexceptions()) { ...get message processor name event... ...get message processor payload event... } } }
but cant find message processor in events. how this?
the message processor payload can found in mulemessage of each muleevent (event.getmessage().getpayload()
). i'm not sure message processor name or why you'd need anyway, perhaps set property or variable data needed in each route of scatter-gather. hth
Comments
Post a Comment