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 » variable in Failure node.

Post new topic  Reply to topic
 variable in Failure node. « View previous topic :: View next topic » 
Author Message
Gemz
PostPosted: Fri Mar 14, 2008 7:33 am    Post subject: variable in Failure node. Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi,

Is there any variable which will be available even in FAILURE Node.
But this variable should be available for that flow only. If new message comes that variable should not be there.

Thanks
Back to top
View user's profile Send private message
mrgate
PostPosted: Fri Mar 14, 2008 7:38 am    Post subject: Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

Hello Gemz,
can you specify your query more specific as your query cannot be understandable.
_________________
MQSeries terrorist
Back to top
View user's profile Send private message
gregop
PostPosted: Fri Mar 14, 2008 7:58 am    Post subject: Reply with quote

Voyager

Joined: 24 Nov 2006
Posts: 81

Use the Environment tree.

SET Environment.Variables.YOUR_VAR = 'XXX' ;
Back to top
View user's profile Send private message
Gemz
PostPosted: Fri Mar 14, 2008 8:06 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi,

I have set some variables in the normal flow. In case of failure of the message, i want to access the same value which i set in the normal flow.

I am using file input node and i am setting some values in Environment variables in the normal flow. But if the flow comes to failure terminal of the file input node all the environment variables are flushed. So i am not able to access those values.

I can use shared variable. but this variable will remain for all the flow instances and this should not happen.

Thanks
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Mar 14, 2008 8:59 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Gemz wrote:

I am using file input node and i am setting some values in Environment variables in the normal flow. But if the flow comes to failure terminal of the file input node all the environment variables are flushed.



If I understand you correctly you set Environment variable in Compute node just after file input node.

It means that when the flow comes to failure terminal of the file input node variables are not set because message is not processed by your Compute node.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Gemz
PostPosted: Fri Mar 14, 2008 10:28 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

marcin.kasinski wrote:


It means that when the flow comes to failure terminal of the file input node variables are not set because message is not processed by your Compute node.


Yes, I set the variables in the compute node. When the message comes to catch terminal i am able to get the variables. Then i throw it to the failure terminal. In Failure terminal i am not getting those environment variables.

Thanks
Back to top
View user's profile Send private message
mrgate
PostPosted: Fri Mar 14, 2008 11:45 am    Post subject: Reply with quote

Centurion

Joined: 28 Feb 2007
Posts: 141
Location: India

we can use usr folder of MQRFH2 header to propagate the variable
_________________
MQSeries terrorist
Back to top
View user's profile Send private message
Gemz
PostPosted: Fri Mar 14, 2008 12:07 pm    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

mrgate wrote:
we can use usr folder of MQRFH2 header to propagate the variable


But we are not using any queue in this flow.

Flow looks like

FileInput--->Compute--->DatabaseNode

In our scenario if any message fails, we have to send an email notification and move the file to mqsibackout folder.

In failure termianl we have email node to send some details about why the message has failed. we are putting the error details in an Env Variable. Here we are not able to get Env variable when the flow comes to failure terminal.

Thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » variable in Failure node.
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.