Author |
Message
|
KK |
Posted: Wed Dec 11, 2002 5:32 pm Post subject: 3 input message XML to CWF convertion dynamically |
|
|
Newbie
Joined: 09 Dec 2002 Posts: 8
|
hi folks thanks for previous reply.
now i have a question.
I have one message set say msgSet and 3 messages in it suppose
messageType1
messageType2
and messageType3
and i have one message flow
with
INPUTNODE-->CATCH-->COMPUTE---->OUTPUTNODE
my input for all 3 messageTypes is XML and out put from message flow is cobol format fixed lenth string(CWF).
now my question is:
How can I check the root element for each message comming in my messageflow and then accordingly apply relevant message Type for XML-TO-CWF output conversion.
thanks in adv,
KK. |
|
Back to top |
|
 |
udaybho |
Posted: Thu Dec 12, 2002 7:49 am Post subject: |
|
|
Voyager
Joined: 09 May 2002 Posts: 94 Location: Chicago
|
I am assuming your message will have MQRFH2 header and you will pass the message template information (MessageType, Messageset, domain) through MQRFH2.
If your case is the way I mentioned above, then check MQRFH2 header for the MessageType and then set the output Format in Properties.
Uday Bhosle |
|
Back to top |
|
 |
KK |
Posted: Thu Dec 12, 2002 3:07 pm Post subject: |
|
|
Newbie
Joined: 09 Dec 2002 Posts: 8
|
thanks uday,
but my message doed not have RFH2 header it is JMS message with target client MQ.
can anybody giude me using routeTOLabel stuff.
i think this shud be useful but i dono..
Thanks in adv,
Ajju. |
|
Back to top |
|
 |
lung |
Posted: Thu Dec 12, 2002 4:55 pm Post subject: |
|
|
 Master
Joined: 27 Aug 2002 Posts: 291 Location: Malaysia
|
KK, I would suggest the following flow...
Input -> Compute -> RCD -> Compute -> Output
You do not need a TryCatch node after the Input node because the Input node has its own TryCatch function (there is a 'Catch' terminal there).
There has to be a field in your incoming XML message that signifies which messagetype it corresponds to. For example...
<Msg><MsgType>1</MsgType></Msg>
Then you can SET OutputRoot.Properties.MessageType = InputBody.MsgType;
However, if your root tag name identifies the messagetype, then you have to read up on the FIELDNAME function
The RCD node is required to parse your message into MRM-XML. The second compute node is required to convert your message into MRM-CWF format.
Hope this helps. _________________ lung |
|
Back to top |
|
 |
KK |
Posted: Sun Dec 15, 2002 4:51 pm Post subject: |
|
|
Newbie
Joined: 09 Dec 2002 Posts: 8
|
thanks lung,
one more thing my input message has its root element that specify the parser to apply to it.
so if i choose the FIELDNAME in the output property then what shud be the other parameters in RCD node.
i mean i shud not specify the message type in RCD.... is this right?
as my 3 input message which has same message set with XML as input and output cobol CWF format.
thanks for u'r help,
KK. |
|
Back to top |
|
 |
KK |
Posted: Mon Dec 16, 2002 10:12 am Post subject: |
|
|
Newbie
Joined: 09 Dec 2002 Posts: 8
|
thanks lung,
its working perfect.
thanks very much for all u'r help.
KK |
|
Back to top |
|
 |
|