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 » Mflow Coding Input to OutputRoot

Post new topic  Reply to topic
 Mflow Coding Input to OutputRoot « View previous topic :: View next topic » 
Author Message
PGBuff
PostPosted: Wed Mar 26, 2014 12:08 pm    Post subject: Mflow Coding Input to OutputRoot Reply with quote

Novice

Joined: 08 Nov 2013
Posts: 11

Hi

I'm new to MB v8 ..

Creating an Application and Test Message Flow. When in the Compute Node of my Mflow , if I use the following code.. it generates the correct output cause it simply copies the immutable InputRoot to mutable OutputRoot.
Code:
Set OutputRoot = InputRoot ;


But when I use following code.. in place of above in the same compute node, I don't get the desired output. I simply get <Candidate/> as an Output.

Code:

Set OutputRoot.XMLNSC.Candidate.FirstName = InputRoot.XMLNSC.PERSON.FNAME ;

Set OutputRoot.XMLNSC.Candidate.LastName = UPPER(InputRoot.XMLNSC.PERSON.LNAME);

Set OutputRoot.XMLNSC.Candidate.Old = InputRoot.XMLNSC.PERSON.AGE ;


My dummy input message is small and used for above codes ..

Code:
<Body><PERSON><FNAME>XYZ</FNAME><LNAME>UNKNOWN</LNAME><AGE>20</AGE></PERSON></Body>


Please suggest, where I'm doing wrong ?
Thanks !!
Back to top
View user's profile Send private message
sandman147
PostPosted: Wed Mar 26, 2014 12:30 pm    Post subject: Reply with quote

Apprentice

Joined: 01 Sep 2013
Posts: 42

If <Body> is a Tag, Should'nt it be
Code:


Set OutputRoot.XMLNSC.Candidate.FirstName = InputRoot.XMLNSC.Body.PERSON.FNAME ;

Set OutputRoot.XMLNSC.Candidate.LastName = UPPER(InputRoot.XMLNSC.Body.PERSON.LNAME);

Set OutputRoot.XMLNSC.Candidate.Old = InputRoot.XMLNSC.Body.PERSON.AGE ;
Back to top
View user's profile Send private message
PGBuff
PostPosted: Wed Mar 26, 2014 12:58 pm    Post subject: Reply with quote

Novice

Joined: 08 Nov 2013
Posts: 11

thanks.. that works.
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 » Mflow Coding Input to OutputRoot
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.