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 » Appending input data to output messages in ESQL

Post new topic  Reply to topic
 Appending input data to output messages in ESQL « View previous topic :: View next topic » 
Author Message
djg2004
PostPosted: Mon Aug 02, 2004 2:04 am    Post subject: Appending input data to output messages in ESQL Reply with quote

Newbie

Joined: 02 Aug 2004
Posts: 2
Location: UK

Hullo,

Please forgive the newbie nature of this question, I'm quite inexperienced with ESQL....

I've been give a UPES activity where I must append some of my input data container information as part of a message string which is being sent onwards to a business service.

To put this in context, the message string is a warning comment where I must advise the user that an account will be overdrawn by a certain date.

I've set up the text part as follows:
SET OutputRoot.XML."Interface".BusinessServiceInterface.CreateWorkflowObjects.WorkObjectData.CommentList.CommentText=
Account may go overdrawn by the ';

-which was straight forward enough. I'd now like to append the date component to this, which is part of the input information and is held here :
"InputBody"."WfMessage"."ActivityImplInvoke"."ProgramInputData"."CheckAccountData"."DateToStopCheck".

I realise that I could assemble the message in its entirity back in the initial java program which would then send it to WMQW/WMQI. However I'm trying to avoid overloading my data container with "user alert" messages as per the above example, which is only required when the account is likely to be overdrawn.

Is there a way to do this in ESQL ?

Thanks in advance
Back to top
View user's profile Send private message
kirani
PostPosted: Mon Aug 02, 2004 2:50 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Yes, you can do this in ESQL using STRING || operator.

Code:


SET OutputRoot.XML."Interface".BusinessServiceInterface.CreateWorkflowObjects.WorkObjectData.CommentList.CommentText= 'Account may go overdrawn by the ' || "InputBody"."WfMessage"."ActivityImplInvoke"."ProgramInputData"."CheckAccountData"."DateToStopCheck";


_________________
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
View user's profile Send private message Visit poster's website
djg2004
PostPosted: Mon Aug 02, 2004 4:52 am    Post subject: Reply with quote

Newbie

Joined: 02 Aug 2004
Posts: 2
Location: UK

That's got it !

Thanks, kirani.
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 » Appending input data to output messages in ESQL
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.