Author |
Message
|
selvaetkt |
Posted: Tue Jun 25, 2013 1:16 am Post subject: Assigning the value for promoted propertiesin the msg flow |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Hi All,
1.I dont know what are the ways we can assign the values for promoted properties in a flow . can you please explain this
2.for example my flow has mqinput->compute->mqoutput node . if the input queue is a promoted property of a flow , how it will get the queue name . from where ? |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jun 25, 2013 2:23 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The Promoted properties are in the 'Basic' tab of the message flow properties.
Try it and see. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
madkak |
Posted: Tue Jun 25, 2013 2:23 am Post subject: |
|
|
Newbie
Joined: 11 May 2013 Posts: 4
|
either you can give this using bar over ride property and manually at bar level. |
|
Back to top |
|
 |
selvaetkt |
Posted: Tue Jun 25, 2013 2:56 am Post subject: either you can give this using bar over ride property and ma |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Thanks madkak. you explained about bar over ride. it can be done once the bar file is created .
In my case , i promoted mqinput queue name property to the flow. when i try to create bar file i am getting the following error. so how i can do the bar over ride in this case please help me .
-----------------------------------------------------------------------------------
Processing file flow11.msgflow
Failed to add file flow11.msgflow to archive file.
/test111/flow11.msgflow has errors.
Please correct the errors and try again.
------------------------------------------------------------------------------------- |
|
Back to top |
|
 |
selvaetkt |
Posted: Tue Jun 25, 2013 3:04 am Post subject: The Promoted properties are in the 'Basic' tab of the messag |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Thanks for reply smdavies99. Yes i can find the 'Basic' tab of the message flow properties.
Consider this scenario . Mqinput->compute->Mqoutput . if this is the sub flow and reusable in various projects. I want to assign the values for queue name for mqinput node dynamically at run time , is it possible to create a bar file without a input queue name(promoted to flow). please help me on this. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 25, 2013 5:51 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's a huge difference between a bar file and a subflow.
There's also an immensely large difference between a file named ".subflow" and a file named ".msgflow".
You can't deploy anything named ".msgflow" that contains an MQInput node that does not have a queue set on it's properties. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 25, 2013 7:20 am Post subject: Re: The Promoted properties are in the 'Basic' tab of the me |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
selvaetkt wrote: |
I want to assign the values for queue name for mqinput node dynamically at run time |
You can't.
The best you can do is assign it at deploy time.
And as my most worthy associate points out, you can't deploy it (or indeed add it to a bar file) without any value at all.
I echo and endorse his comments on the difference between a message flow and a sub flow. Just because your flow is architecturally a common sub flow doesn't make it a broker subflow. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jun 25, 2013 8:27 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
You can use QALIAS on the QMGR to change the queue that gets opened when the message flow starts. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
selvaetkt |
Posted: Wed Jun 26, 2013 2:39 am Post subject: Thanks Everyone |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Hi All ,
Thanks to everyone to give me the clear idea about the issue . now i can understand that we are doing bar override during implementation.
But in my case we are using .msgflow as a subflow . so my final doubt is whether we can use .msgflow as a subflow . |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 26, 2013 3:02 am Post subject: Re: Thanks Everyone |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
selvaetkt |
Posted: Wed Jun 26, 2013 3:53 am Post subject: thanks- lancelotlinc |
|
|
Novice
Joined: 25 Jun 2013 Posts: 16 Location: chennai
|
Now i am clear .Many Thanks . it is very useful for me as a beginner of message broker developer. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 26, 2013 4:17 am Post subject: Re: thanks- lancelotlinc |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
NealM |
Posted: Wed Jun 26, 2013 12:58 pm Post subject: |
|
|
 Master
Joined: 22 Feb 2011 Posts: 230 Location: NC or Utah (depends)
|
Just one minor thing. smdavies99 is wrong when he stated that "The Promoted properties are in the 'Basic' tab of the message flow properties" if he meant that to be restrictive.
You can promote properties from other than the Basic tab of a node, and the name of the tab they are on in that node, or any other tab name that you can think of (ex: the node's name), can be used to hold the promoted properties at the flow/subflow level. The "New Group" button on the Promote Property's Target Selection pop-up lets you decide what the tab name(s) will be. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Jun 26, 2013 11:32 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
NealM wrote: |
Just one minor thing. smdavies99 is wrong when he stated that "The Promoted properties are in the 'Basic' tab of the message flow properties" if he meant that to be restrictive.
You can promote properties from other than the Basic tab of a node, and the name of the tab they are on in that node, or any other tab name that you can think of (ex: the node's name), can be used to hold the promoted properties at the flow/subflow level. The "New Group" button on the Promote Property's Target Selection pop-up lets you decide what the tab name(s) will be. |
I was just starting from an example flow I have. The OP was IMHO hardly likely to be aware of those other options at this stage in their broker education.  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
|