|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can I replace a variable value for any of nodes properties |
« View previous topic :: View next topic » |
Author |
Message
|
Ravin |
Posted: Thu May 14, 2015 11:00 am Post subject: Can I replace a variable value for any of nodes properties |
|
|
 Novice
Joined: 18 Nov 2010 Posts: 11
|
Hey All,
I was just wondering if there's a way we can use a variable to replace to actual value for any of the WMB node's properties..?
For Ex:
I have a UDP value set in myUDP = DEV in one of the message flows. I want to use this myUDP in the DataSource property of a compute node such a way that it can resolve to DEV (Perhaps {myUDP}-doesn't work). Not sure if I can do this...also haven't seen a mention on this in infocenter.
I did see we can use such varibles for the Short/Long Description properties of a message flow, but this doesn't seem to work some specific properties of a node (like DataSource property)?
Looking forward for your thoughts... Thanks. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 14, 2015 11:11 am Post subject: Re: Can I replace a variable value for any of nodes properti |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Ravin wrote: |
I was just wondering if there's a way we can use a variable to replace to actual value for any of the WMB node's properties..? |
No
Ravin wrote: |
I have a UDP value set in myUDP = DEV in one of the message flows. I want to use this myUDP in the DataSource property of a compute node such a way that it can resolve to DEV (Perhaps {myUDP}-doesn't work). Not sure if I can do this...also haven't seen a mention on this in infocenter. |
But whatever you're using to set the UDP to a given value based on what environment the flow is running in can just as easily set the node property prior to deployment, and achieve exactly the result you're looking for. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Ravin |
Posted: Thu May 14, 2015 11:31 am Post subject: |
|
|
 Novice
Joined: 18 Nov 2010 Posts: 11
|
Thanks Vitor.
Yes I can do that, but I was just checking for another possibility  |
|
Back to top |
|
 |
Armageddon123 |
Posted: Thu May 14, 2015 12:38 pm Post subject: |
|
|
Acolyte
Joined: 11 Feb 2014 Posts: 61
|
If it is 'datasource' property which needs to be modified during run time. then ESQL DB Call statements support providing variables for datasource and schema. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri May 15, 2015 4:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Ravin wrote: |
Thanks Vitor.
Yes I can do that, but I was just checking for another possibility  |
Have you looked at promoting the property to the flow?
If you have multiple nodes that all need to use the same DB, you can promote the property to the flow and set it only once...
If multiple subflows are supposed to take on the value from the main flow, you may have to promote twice, once to the subflow level, once from the subflow to the flow level...  _________________ MQ & Broker admin |
|
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
|
|
|
|