Author |
Message
|
SandiSan |
Posted: Wed Apr 18, 2007 7:24 am Post subject: Promote Properties Issue |
|
|
 Acolyte
Joined: 01 Apr 2006 Posts: 57 Location: Pune/India
|
Hi ,
I am woking with a msg flow which is like this
mqi/p--subflow1--subflow2--mqo/p
I have created UserDefineProperties in subflow1 and promoted to main flow
and trying to access the property in subflow2 but i am getting null value
please guide me to resolve this issue
Regards
Sandisan |
|
Back to top |
|
 |
Rodeo |
Posted: Wed Apr 18, 2007 7:29 am Post subject: |
|
|
Apprentice
Joined: 11 Apr 2007 Posts: 30
|
Did you promote the properties in Subflow2? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 18, 2007 7:33 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think it doesn't work that way.
I think you have to define your UDPs in both subflows. Then if you want them to have the same value, you can promote them to the same name on the main flow.
But they'll still be different UDPs.
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac00643_.htm
Quote: |
Similarly, if you use the Message Flow editor to change the value of a user-defined property in a subflow, the newly edited property is available to all the nodes in the subflow that support UDPs and that are within the scope of the declaration. It is not available, for example, to nodes in the parent flow. |
_________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
SandiSan |
Posted: Wed Apr 18, 2007 8:19 am Post subject: Promote Properties Issue |
|
|
 Acolyte
Joined: 01 Apr 2006 Posts: 57 Location: Pune/India
|
Hi,
Here i have created UDP's in subflow1 and i have promoted to main flow.Now i need to access those properties from main flow to subflow2.
Regards,
Sandisan |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Apr 18, 2007 8:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think you can't do it that way. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Rodeo |
Posted: Wed Apr 18, 2007 8:44 am Post subject: |
|
|
Apprentice
Joined: 11 Apr 2007 Posts: 30
|
Did you try using DECLARE varname EXTERNAL character; ??
Quote: |
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak04980_.htm |
Use EXTERNAL to denote a user-defined property (UDP). A UDP is a user-defined constant whose initial value (optionally set by the DECLARE statement) can be modified, at design time, by the Message Flow editor, or overridden, at deployment time, by the Broker Archive editor. Its value cannot be modified by ESQL. |
|
Back to top |
|
 |
Balaji_P |
Posted: Wed Apr 18, 2007 10:06 pm Post subject: |
|
|
Apprentice
Joined: 05 Sep 2006 Posts: 36 Location: Chennai
|
|
Back to top |
|
 |
|