Author |
Message
|
Gemz |
Posted: Fri Mar 14, 2008 7:33 am Post subject: variable in Failure node. |
|
|
 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 |
|
 |
mrgate |
Posted: Fri Mar 14, 2008 7:38 am Post subject: |
|
|
 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 |
|
 |
gregop |
Posted: Fri Mar 14, 2008 7:58 am Post subject: |
|
|
Voyager
Joined: 24 Nov 2006 Posts: 81
|
Use the Environment tree.
SET Environment.Variables.YOUR_VAR = 'XXX' ; |
|
Back to top |
|
 |
Gemz |
Posted: Fri Mar 14, 2008 8:06 am Post subject: |
|
|
 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 |
|
 |
marcin.kasinski |
Posted: Fri Mar 14, 2008 8:59 am Post subject: |
|
|
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 |
|
 |
Gemz |
Posted: Fri Mar 14, 2008 10:28 am Post subject: |
|
|
 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 |
|
 |
mrgate |
Posted: Fri Mar 14, 2008 11:45 am Post subject: |
|
|
 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 |
|
 |
Gemz |
Posted: Fri Mar 14, 2008 12:07 pm Post subject: |
|
|
 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 |
|
 |
|