|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Flow not transforming |
« View previous topic :: View next topic » |
Author |
Message
|
LH33 |
Posted: Thu Feb 26, 2004 9:00 am Post subject: Message Flow not transforming |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
I have a message flow that reads XML from a queue, checks a tag and based on the value of the tag, sets two Output tags.
When I run the following XML through, it does not set the two output tags even though the value is the right value that I am checking.
Could someone help me determine what is wrong? Thanks, Lisa
Here is the code and the XML I used:
<XML>
<CompleteOdlJob revision="" environment="test">
<ApplicationArea>
<Sender>
<Component>MDSNotify.ODL</Component>
<Confirmation/>
<AuthorizationId/>
</Sender>
<CreationDateTime>2004-02-25T14:57:45</CreationDateTime>
<BODId>89B38554-C71F-407A-8D41-233E7FD65AE2</BODId>
</ApplicationArea>
<DataArea>
<ODL_LIGHT_INFORMATION>
<ODL_KY_LAMP_GRID_NO>1010140</ODL_KY_LAMP_GRID_NO>
<ODL_STLT_FLAG/>
<ODL_PAL_FLAG/>
</ODL_LIGHT_INFORMATION>
<ODL_OTHER_INFORMATION>
<ODL_LIGHT_TYPE>STLT</ODL_LIGHT_TYPE>
</ODL_OTHER_INFORMATION>
</DataArea>
</CompleteOdlJob>
</XML>
CODE:
SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
If InputRoot.XML.CompleteOdlJob.DataArea.ODL_OTHER_INFORMATION.ODL_LIGHT_TYPE = 'STLT' THEN
SET OutputRoot.XML.CompleteOdlJob.DataArea.ODL_LIGHT_INFORMATION.ODL_STLT_FLAG = 'Y';
SET OutputRoot.XML.CompleteOdlJob.DataArea.ODL_LIGHT_INFORMATION.ODL_PAL_FLAG = 'N';
End if; |
|
Back to top |
|
 |
LH33 |
Posted: Thu Feb 26, 2004 9:48 am Post subject: |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
I found the problem. I had XML in the beginning and end of the XML in error!! |
|
Back to top |
|
 |
EddieA |
Posted: Thu Feb 26, 2004 9:53 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Is the <XML> actually a tag, or just how you are describing it.
If it really does exist, then you need either "InputRoot.XML.XML" or "InputBody.XML".
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|