Author |
Message
|
murdeep |
Posted: Tue Dec 11, 2007 1:14 pm Post subject: Mapping node issue |
|
|
Master
Joined: 03 Nov 2004 Posts: 211
|
Hi, I am running v6.0.2 of tooling and V6.0.0.5 runtime. I am trying to use a mapping node to do what I think should be easy but for the life of me I can't figure it out.
I have modelled my input and output messages. In the mapping node I want to set the target MQMD CorrelId equal to the source MQMD MsgId.
I drag the source to the target and the value for CorrelId shows as:
$source/MQMD/MsgId
I have a trace node immediately following the mapping node where I trace ${Root} and when it dumps the tree I see the CorrelId and it is unchanged (hex zeros).
I am at a loss on why this is not working. This seems so fundamental and I am beginning to wonder if I am losing my mind.
Please advise. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 11, 2007 2:52 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The CorrelID is being written over by a value in the Properties tree (Request ID? I forget which one).
Set the Properties tree value to NULL, or set it to the MsgId of the input message. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
murdeep |
Posted: Tue Dec 11, 2007 3:32 pm Post subject: |
|
|
Master
Joined: 03 Nov 2004 Posts: 211
|
Jeff, is that documented? I haven't read anything that states fields in the MQMD will be populated with values from the fields in the Properties.
BTW, I assume you were referring to Properties.ReplyIdentifier above? It's the only field in Properties that has any resemblence to a CorrelId. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Dec 11, 2007 4:06 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
murdeep wrote: |
Jeff, is that documented? I haven't read anything that states fields in the MQMD will be populated with values from the fields in the Properties.
BTW, I assume you were referring to Properties.ReplyIdentifier above? It's the only field in Properties that has any resemblence to a CorrelId. |
There is a note somewhere that talks about various fields in Properties being used instead of "transport headers" or some such.
I really don't feel like digging it up right now.
And yes, ReplyIdentifier sounds right. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
murdeep |
Posted: Tue Dec 11, 2007 4:08 pm Post subject: |
|
|
Master
Joined: 03 Nov 2004 Posts: 211
|
Ok, I got it to work by doing the following. Before the MQMD in the spreadsheet window of the mapping editor I added the following:
Map Script --> Value
=============
if -->
condition --> fn:true()
for --> $source/MQMD
This seems to work.
I haven't looked at trying what Jeff suggested. |
|
Back to top |
|
 |
|