Author |
Message
|
yadav.neeraj01 |
Posted: Mon Feb 17, 2014 8:50 am Post subject: Roll Back |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
Hi
May be my doubt is stupid or easy...please bear with me.... i did R&D but couldn't figured it out....
My question is can we make a transformed message to be rolled back instead of original message in a flow...  |
|
Back to top |
|
 |
Gralgrathor |
Posted: Mon Feb 17, 2014 8:55 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
Yeah. Make a copy of the original message. |
|
Back to top |
|
 |
yadav.neeraj01 |
Posted: Mon Feb 17, 2014 9:00 am Post subject: |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
let me explain this with example........if we have let say 3 nodes...MQINPUT, COMPUTE and MQOUTPUT Nodes...and some transformation is happening in Compute node.....if some error occurs after compute node in message flow then i guess original message will be rolled back towards MQInput node....Now my question is...Can we set any property of node by which we can have transformed message rolled back instead of original message?? |
|
Back to top |
|
 |
Gralgrathor |
Posted: Mon Feb 17, 2014 9:05 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
Read up on your fail and catch terminals.
O, and your exit handlers. You'll need to write your compute module in such a way that the result until the exception is kept.
Last edited by Gralgrathor on Mon Feb 17, 2014 9:11 am; edited 1 time in total |
|
Back to top |
|
 |
yadav.neeraj01 |
Posted: Mon Feb 17, 2014 9:09 am Post subject: |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
Thanks for your reply...........Let me put in this way......will there be only original message rollback in case of any failure in message flow? |
|
Back to top |
|
 |
Gralgrathor |
Posted: Mon Feb 17, 2014 9:13 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
If you define a continue handler for each atomic translation in your compute module you might be able to keep the transformed result and a list of exceptions. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 17, 2014 9:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Let me put this in somewhat different terms for you?
What is the purpose of this? You don't have an input node to reprocess the changed message at whatever state it is!
If all you care about is the last operation / state before failure (or coverage/audit trail), you can capture that in the environment and reuse it in your catch / failed branch.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
yadav.neeraj01 |
Posted: Mon Feb 17, 2014 10:05 am Post subject: |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
Thanks..... |
|
Back to top |
|
 |
|