Using variable obtening by tJava_row and used on tSetGlobalVar

Seven Stars

Using variable obtening by tJava_row and used on tSetGlobalVar

Hello, I'm her again, Cat Tongue

I have a job like this ,

tFileInputXML ------> tXMLMAP------>tJavaRow------>tSetGlobalVar------->tSendMail

 

I extracte some data in my inputfile and in my tJava I have a condition:

string var =((String)globalMap.get("stuff'));
if( var !=null)
{
//execute programme 
print = var;
}
else
{
system.out.println("Pass"); }

(if condition is, if I get some error string i set the file name in a var and i send a email with the file who get the error)

 

so in my tSendMail I would like to use the print variable in my if condition, or setting in my tSetGlobalVar, how can I do ?

Thx a lot 


Accepted Solutions
Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

Ok i find the solution for this , thx ! I used globalMap.Put("name",date);
btw I have an other problem, gonna open new discussion.

All Replies
Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

Solved, I use the tLogRow.ERROR_MESSAGE

Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

Update:
Its not working
Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

use the tLogRow.ERROR_OUTPUT

Regards
Aashish
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

I don't have tLogRow.ERROR_OUTPUT, I have only ERROR.MESSAG or NB.LINE:/
Eleven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

use globalMap.set("name","Value") in your tjavarow
or
ann an output and set it on output_row.rowname=var;

de careful, globalMap is a global variable, row.rowname is not.

Francois Denis

Tag as "solved" for others! Kudos to thanks!

Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

How can I set ?
I don't understand how can i set with globalmap.set :/
Seven Stars

Re: Using variable obtening by tJava_row and used on tSetGlobalVar

Ok i find the solution for this , thx ! I used globalMap.Put("name",date);
btw I have an other problem, gonna open new discussion.