Author |
Message
|
psandip |
Posted: Mon Oct 19, 2009 1:04 am Post subject: Using shared variable and additional instances together |
|
|
Novice
Joined: 11 Aug 2006 Posts: 17
|
Hi,
I am using a shared variable for my message flow. The message flow generated a filename based on timestamp and assigns this name to the shared variable. A check is made within the compute node to see whether the shared variable is null or does it have a value. If it is null, the the filename is generated and assigned to it else, no need to assign a new name. Now suppose 10 instances of this message flow is to be deployed. once the shared variable is populated with a filename, can the other 9 flows access this value or they see it as null? _________________ With Best Regards,
Sandeep |
|
Back to top |
|
 |
nheng |
Posted: Mon Oct 19, 2009 2:18 am Post subject: Re: Using shared variable and additional instances together |
|
|
 Apprentice
Joined: 07 Dec 2007 Posts: 39
|
psandip wrote: |
Hi,
I am using a shared variable for my message flow. The message flow generated a filename based on timestamp and assigns this name to the shared variable. A check is made within the compute node to see whether the shared variable is null or does it have a value. If it is null, the the filename is generated and assigned to it else, no need to assign a new name. Now suppose 10 instances of this message flow is to be deployed. once the shared variable is populated with a filename, can the other 9 flows access this value or they see it as null? |
Declare it be external variable .Look t it in document |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Mon Oct 19, 2009 2:38 am Post subject: Re: Using shared variable and additional instances together |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
nheng wrote: |
Declare it be external variable .Look t it in document |
How will this help? Please tell us what you hope to gain by using the EXTERNAL keyword in this context? |
|
Back to top |
|
 |
sirsi |
Posted: Wed Oct 21, 2009 7:19 am Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
psandip: shared variables are shared across all threads(instances) of the flow... |
|
Back to top |
|
 |
Sam Uppu |
Posted: Wed Oct 21, 2009 7:23 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
Just curious to know - which means we should not use multiple instances of the flow when shared variables are used in a flow?.
Thanks. |
|
Back to top |
|
 |
sirsi |
Posted: Wed Oct 21, 2009 7:31 am Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
|
Back to top |
|
 |
|