java - how to send same payload to multiple component in mule? -
i have problem 1 mule component transform payload object other value. ex: suppose payload contain student object. initial value of student name=a;
my first mule component change student name x;
student s=new student(); s.setname("x");
my second mule component receive name x
payload. want original value 'a'
. tried checking original payload of mule value changed..
<flow ..... <component> </component> // 1st component <component></component> //2nd component </flow>
i want same payload(original) (student object name a) in both component..how can that? have checked original payload , has been transformed..
thanks
you can use <all>
send same payload different components
<flow ..... <all> <component> </component> // 1st component <component></component> //2nd component </all> </flow>
or, different way approach same thing store original payload in variable , replace payload previous 1 like:
<set-variable variablename="originalpayload" value="#[message.payload]" />
and then,
<set-payload value="#[flowvars.originalpayload]"/>
Comments
Post a Comment