Author |
Message
|
mqsidude |
Posted: Thu Jan 22, 2004 8:52 pm Post subject: Elements missing in the o/p message |
|
|
 Centurion
Joined: 22 Jan 2004 Posts: 148
|
Hi folk,
I have a mrm with two simple elements of type int and float. These elements are assigned default values using element values. I have a simple flow with a compute node followed by trace node.The mrm is added for output messages in compute node and i have mapped a value for one of the elements. The trace writes the Root to a file. Now the problem is that the trace shows only the mapped element. The message in output queue shows the correct length but only the mapped element is visible but not the other one. My expectation is to get the message with all the elements, including the ones which are not mapped with their default values. Any clues?
Thanks, |
|
Back to top |
|
 |
kirani |
Posted: Thu Jan 22, 2004 11:44 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I am bit lost here. Are you saying that the "default value" elements are not visible when you see the message on the output queue? Are you sure you have included the elements in your message definition?
Default values for unmapped elements are applied when the bitstream of the message is created. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
mqsidude |
Posted: Fri Jan 23, 2004 1:49 am Post subject: |
|
|
 Centurion
Joined: 22 Jan 2004 Posts: 148
|
You are right. The elements which are not mapped with some values in the compute node are missing in the trace (These have default vales set!). The trace is being taken after the compute node. What i could see in trace is only the elements which are mapped. But the message length in the output queue is correct. |
|
Back to top |
|
 |
wooda |
Posted: Fri Jan 23, 2004 2:16 am Post subject: |
|
|
 Master
Joined: 21 Nov 2003 Posts: 265 Location: UK
|
1.) Default Values never appear in trace. They are only inserted when the bitstream is written (ie. in the output node).
2.) Default values are only inserted in some circumstances.
If the wire format is CWF. And the Occurences of the element are less than the repeat count.
If the wire format is TDS and the separation technique of the parent type is Fixed Length and the occurences of the element are less than the Min Occurs field for the element. |
|
Back to top |
|
 |
mqsidude |
Posted: Fri Jan 23, 2004 6:12 am Post subject: |
|
|
 Centurion
Joined: 22 Jan 2004 Posts: 148
|
That clears my doubt...
Thanks guys.... |
|
Back to top |
|
 |
|