ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Environment variables and Timer Nodes

Post new topic  Reply to topic
 Environment variables and Timer Nodes « View previous topic :: View next topic » 
Author Message
siljcjose
PostPosted: Thu Jun 25, 2009 2:14 am    Post subject: Environment variables and Timer Nodes Reply with quote

Apprentice

Joined: 18 Aug 2005
Posts: 27

Hi,

We have a requirement, where we need to persist some data before sending it to the Timer Control node and get that data back once we have the Out via the TimeOut Notification node. We tried using the environment variables to do that. But we are not getting the environment variables through. It is dropped when the message comes out of the Notification Node.

Please can somebody let us know, if we can use Environment variables for this purpose, when using Timer Control and Notification node.

Thanks.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 25, 2009 2:17 am    Post subject: Re: Environment variables and Timer Nodes Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

siljcjose wrote:
Please can somebody let us know, if we can use Environment variables for this purpose, when using Timer Control and Notification node.


Environment variables don't last past the execution of the flow that creates them.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
siljcjose
PostPosted: Thu Jun 25, 2009 2:38 am    Post subject: Reply with quote

Apprentice

Joined: 18 Aug 2005
Posts: 27

Does this mean that the introduction of a timer control and Notification node in the flow, makes the involved flows behave as independent flows ?
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Jun 25, 2009 2:43 am    Post subject: Re: Environment variables and Timer Nodes Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Vitor wrote:


Environment variables don't last past the execution of the flow that creates them.


This is true unless they are shared environment variables. This might be a solution to the problem.
_________________
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
View user's profile Send private message
satya2481
PostPosted: Thu Jun 25, 2009 5:32 am    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Is there any solution to over come this issue?
Where can we store the values or details which are needed to be used to perform some business logic after the Notification node....

Using the shared variables is only the options?

Cant we store the details in LocalEnvironment? Because I tried to debug the flow and checked the Presence of LocalEnvironmennt tree at the ouput terminal of Notification node.
_________________
IBM Certified Solution Developer WebSphere Message Broker V6.0
IBM Certified System Administrator WebSphere MQ V6.0
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Thu Jun 25, 2009 5:36 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

TimeoutNotification is an *input* node.

It starts a new message flow instance, just like every other Input node.

Data stored in the Environment tree can not be shared between message flow instances.

Data stored in ESQL Shared variables can be, as long as the instances are on the same EG.

Data stored in the message passed to the TimeoutControl node is available at every instance of the TimeoutNotification node that uses the same UniqueID.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 25, 2009 5:50 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

satya2481 wrote:
Cant we store the details in LocalEnvironment? Because I tried to debug the flow and checked the Presence of LocalEnvironmennt tree at the ouput terminal of Notification node.


If you'd even looked at the documentation before posting, you'd realise why that's a really stupid thing to say.

And no, you can't pass details to another flow in LocalEnvironment. Logically, if the Environment is flow specific (as I said above) a LocalEnvironment from it's name should indicate it has an even smaller scope.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
telecoda
PostPosted: Thu Jun 25, 2009 6:50 am    Post subject: Reply with quote

Novice

Joined: 05 Feb 2008
Posts: 15

Can the data you need to persist not be added to the message you are sending to the Timer control node?

Therefore when your flow effectively wakes up you'll have the information you require?

Either that or look at the Coordinated Request Reply sample that uses an additional message queue to persist information based upon correlation with a message id.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Jun 25, 2009 9:03 pm    Post subject: Re: Environment variables and Timer Nodes Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

siljcjose wrote:
Hi,

We have a requirement, where we need to persist some data before sending it to the Timer Control node and get that data back once we have the Out via the TimeOut Notification node. We tried using the environment variables to do that. But we are not getting the environment variables through. It is dropped when the message comes out of the Notification Node.

Please can somebody let us know, if we can use Environment variables for this purpose, when using Timer Control and Notification node.

Thanks.




You can use usr folder of MQRFH2 header to store the details and they ll survive across timeout notification node...

Otherwise, you can think about using database for this....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Environment variables and Timer Nodes
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.