|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Calling a function from a Message Flow |
« View previous topic :: View next topic » |
Author |
Message
|
LH33 |
Posted: Wed Sep 24, 2003 10:00 am Post subject: Calling a function from a Message Flow |
|
|
Master
Joined: 21 Nov 2002 Posts: 200
|
HI! I have a requirement to take an XML transaction (which can originate from multiple systems), and if certain DateTime tags are present in the following format:
<2003-09-24T10:45:33>
replace the 'T' with a space or if there is a space, replace the space with a 'T'. (I know this can be accomplished in the same node with the SUBSTRING function. )
What I don't know is if there is a way in WMQI Message Flows to have a "Function" that I can pass a DateTime value to and have it return the value with or without the 'T' so that I could re-use this function in many different flows?
Thanks, Lisa |
|
Back to top |
|
 |
EddieA |
Posted: Wed Sep 24, 2003 11:37 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Yes, with WMQI 2.1 (and maybe CSD3) you can define Functions and Procedures.
But, they must be defined in the Compute node where they are called. So, if you want this functionality in different Nodes and Flows, then you will have to Cut/Paste the code between the various nodes.
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
|
|
|
|