|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Appending input data to output messages in ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
djg2004 |
Posted: Mon Aug 02, 2004 2:04 am Post subject: Appending input data to output messages in ESQL |
|
|
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 |
|
 |
kirani |
Posted: Mon Aug 02, 2004 2:50 am Post subject: |
|
|
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 |
|
 |
djg2004 |
Posted: Mon Aug 02, 2004 4:52 am Post subject: |
|
|
Newbie
Joined: 02 Aug 2004 Posts: 2 Location: UK
|
That's got it !
Thanks, kirani. |
|
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
|
|
|
|