|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Accessing promoted properties |
« View previous topic :: View next topic » |
Author |
Message
|
trevv |
Posted: Wed Jun 11, 2003 9:51 am Post subject: Accessing promoted properties |
|
|
Newbie
Joined: 11 Jun 2003 Posts: 1
|
Greetings.
I have a Main Message Flow(A) which calls a subflow(B). I have promoted the
DataSource property(X) of the subflow(B) and assigned a default value('IN').
On the Main Message Flow(A), I right clicked on the subflow(B) and assigned a
value( 'OUT') to the promoted property(X).
Question 1:
How do I access the value of the promoted property(X) from a compute node within the subflow(B)?
I would like to use it in a SET command. I thought it would be something like:
DECLARE vSourceTerminal CHARACTER;
SET vSourceTerminal = "Environment"."Variables"."dataSource";
OR
SET vSourceTerminal = "InputRoot"."Properties"."dataSource";
Question 2:
I then renamed the promoted property(X) to "Source Terminal". How do I access the value of
the promoted property( "Source Terminal") from a compute node within the subflow(B)?
I thought it would be something like:
DECLARE vSourceTerminal CHARACTER;
SET vSourceTerminal = "Environment"."Variables"."Source Terminal";
OR
SET vSourceTerminal = "InputRoot"."Properties"."Source Terminal";
Thank you in advance. _________________ Green |
|
Back to top |
|
 |
shalabh1976 |
Posted: Wed Jun 11, 2003 2:59 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
I'm not sure if you can access the DataSource in your ESQL, because if it was possible it would have been very useful for me.
I decided against using the promote property and actually have three versions of the code where each version has the datasource set to the value in that environment explicitly in the node. |
|
Back to top |
|
 |
kirani |
Posted: Wed Jun 11, 2003 10:10 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
As shalabh1976 said, it is not possible to access promoted property thru ESQL (programatically). _________________ 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 |
|
 |
|
|
 |
|
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
|
|
|
|