|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Header Node: Mixing MQ constant and XPATH |
« View previous topic :: View next topic » |
Author |
Message
|
Seb |
Posted: Fri Mar 27, 2009 6:22 am Post subject: Header Node: Mixing MQ constant and XPATH |
|
|
Apprentice
Joined: 27 Mar 2009 Posts: 41
|
Hi,
I have an issue regarding the Header Nodes and the cominbed use of XPath and MQMD constants. I want to set the MQMD Expiry to the value of $Environment/Variables/ConfigRecords/LOG_EXPIRY or to MQEI_UNLIMITED if the XPath evaluates to NULL. So the question is, how would I realise this, as for example with the COALESCE function in ESQL?
Thanks in advance! |
|
Back to top |
|
 |
rekarm01 |
Posted: Sun Mar 29, 2009 4:36 pm Post subject: Re: Header Node: Mixing MQ constant and XPATH |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
ESQL doesn't support XPath; however, it does provide much of the same functionality with the SELECT and THE functions. |
|
Back to top |
|
 |
Seb |
Posted: Mon Mar 30, 2009 1:57 am Post subject: |
|
|
Apprentice
Joined: 27 Mar 2009 Posts: 41
|
Hi rekarm01,
my question was not if I can use XPath with ESQL, but rather if I can combine XPath and MQ constants in the properties fields of the MQ Header Node.
I have several SubFlows where one SF retrieves flow configuration data from a database. The other SFs are then controlled with these parameters. In my Logging SF, I use a MQ Header Node to adapt the log message before it is written. The rule is, if there is a LOG_EXPIRY set in the Environment than take it, otherwise put the message with UNLIMITED.
If I set this rule in the Compute Node of the Config SF, it would apply to all other subflows. My other option would be in the Logging SF to take the parameter from the environment, if it is available or set it to UNLIMITED or sth. else if not. That would result in a bit more flexibility. Now, can I do this in the Header Node or do I have to use the COALESCE function within a Compute Node?
Thanks again! |
|
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
|
|
|
|