ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Flow not transforming

Post new topic  Reply to topic
 Message Flow not transforming « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Thu Feb 26, 2004 9:00 am    Post subject: Message Flow not transforming Reply with quote

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
View user's profile Send private message
LH33
PostPosted: Thu Feb 26, 2004 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Thu Feb 26, 2004 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Flow not transforming
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.