Posted: Tue Dec 16, 2014 11:06 pm Post subject: Message transaction between two flows.
Apprentice
Joined: 23 Feb 2011 Posts: 49
I have a requirement...Let say there are two flows each consisting of MQInput--->Compute--->MQOutput, output of first flow act as a input of another flow. We are transforming the input message in first flow. Now requiremnt is, we need the transformed and original message both at a part of transaction in second flow. How can we achieve this??
Posted: Wed Dec 17, 2014 5:52 am Post subject: Re: Message transaction between two flows.
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
yadav.neeraj01 wrote:
we need the transformed and original message both at a part of transaction in second flow.
Do you mean that you want the original message rolled back onto the original input queue in the event of a failure?
yadav.neeraj01 wrote:
How can we achieve this??
Rewrite this as a single flow.
If, however, you mean that you need both the original message and the resulting transformed message both available to the second flow then you simply have the first flow produce a copy of the original message and the transformed message as output (consider a FlowOrder node). You then correlate both messages in the second flow using a Collector node and presto! The contents of both messages are in the same message tree in the second flow.
Sorted. _________________ Honesty is the best policy.
Insanity is the best defence.
Last edited by Vitor on Wed Dec 17, 2014 5:52 am; edited 1 time in total
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum