Author |
Message
|
mickey1691 |
Posted: Mon Sep 30, 2013 10:45 pm Post subject: User-defined property to be used by all flows |
|
|
Novice
Joined: 04 Jun 2013 Posts: 19
|
Hi. Is there a way for all message flows to access a user-defined property defined in only one of the flows? Note: All these flows are located in one application. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Oct 01, 2013 3:25 am Post subject: Re: User-defined property to be used by all flows |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mickey1691 wrote: |
Hi. Is there a way for all message flows to access a user-defined property defined in only one of the flows? Note: All these flows are located in one application. |
Yes, why would they not ? Are you asking how ? Did you look in the InfoCentre ? If you attended the training, you would have been taught that the UDP values can be stored in the Environment from a Compute node in the main flow then the Environment can be accessed from any other Compute node in any other part of the flow. Do you remember this ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 01, 2013 6:32 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I think you didn't read the question, lancelotlinc.
I'm reasonably certain the answer is "yes", but not in the way that the original poster wants.
That is, I'm sure it's possible to define the same UDP on all flows in an application, and promote them all, and set them all to the same value.
But that's not what mickey1691 asked. |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Oct 01, 2013 6:46 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
maybe I am missing the point here, but in my understanding the answer is a BIG NO. if the UDP is not defined in the message flow, how can you override it ( selectively ) with the bar file overrides?
Last edited by dogorsy on Tue Oct 01, 2013 7:04 pm; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Oct 01, 2013 7:00 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
I think you didn't read the question, lancelotlinc.
I'm reasonably certain the answer is "yes", but not in the way that the original poster wants.
That is, I'm sure it's possible to define the same UDP on all flows in an application, and promote them all, and set them all to the same value.
But that's not what mickey1691 asked. |
Quote: |
Hi. Is there a way for all message flows to access a user-defined property defined in only one of the flows? Note: All these flows are located in one application. |
Ok, I made some assumptions here that may not be valid. As an example, in DEV we point web services and datasources to a DEV instance. In QA, we point same to QA instance which is named differently. We set a UDP in the upstream (main) flow to whatever value we want for each. The first Compute node in the main flow reads these UDPs and sets Environment.Variables.etcetc to the proper value for each. That way, we don't have to worry about forgetting to override any and all subflows point to the same DSN or same Web Services resource because they are reading the Environment.Variables tree to get them.
This is what I had thought was the end result the OP wanted. I could have been wrong. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 01, 2013 7:05 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
This is what I had thought was the end result the OP wanted. I could have been wrong. |
Yeah, I think that's still the wrong working definition.
It assumes that all uses of the same UDP are actually part of the same logical flow.
Certainly, one could create a flow that did nothing other than read a UDP and stick it into globalCache and then everything else just read that property.
But, again, it achieves the expected end result without doing what was asked about.
As dogorsy says, the correct answer to the question AS IT WAS ASKED is "No, not at all. A flow can't access a UDP that it doesn't know about".
There's a big pile of string, though, and a cat, and a skinning knife and a ruler. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Oct 01, 2013 7:19 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
mqjeff wrote: |
There's a big pile of string, though, and a cat, and a skinning knife and a ruler. |
Is the cat dead or alive? Shall we -- dare we -- open Pandora's box ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Oct 01, 2013 8:29 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
lancelotlinc wrote: |
mqjeff wrote: |
There's a big pile of string, though, and a cat, and a skinning knife and a ruler. |
Is the cat dead or alive? Shall we -- dare we -- open Pandora's box ? |
yes, exactly, domestic cat or wild cat? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 01, 2013 9:22 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
dogorsy wrote: |
lancelotlinc wrote: |
mqjeff wrote: |
There's a big pile of string, though, and a cat, and a skinning knife and a ruler. |
Is the cat dead or alive? Shall we -- dare we -- open Pandora's box ? |
yes, exactly, domestic cat or wild cat? |
I'm reasonably sure it's heavier than an unladen swallow. |
|
Back to top |
|
 |
|