You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2015-07-22 14:40:20

samiboy
Member
1 post

samiboy said:

tServerAlive

hello
When I use the tserveralive passing the parameters for variables it does not work, only if I type, have tested the variables and they return me the correct value, address and port, but always the value of tserveralive is false.
This list containing the host and port are coming from a CSV file.
tFileInputDelimited ----> tJavaRow -> globalMap.put ("host" row1.host); and globalMap.put ("host" row1.port);tServeralive ----> (String) globalMap.get ("host"); and (String) globalMap.get ("port");
But the result is always false.
If you know tell me what's wrong.

Tanks.

Offline

#2 2015-07-23 09:42:47

shong
Talend Team


shong said:

Re: tServerAlive

Hi 
The job design looks like:
tFileInputDelimited--main(row1)--tFlowToIterate--iterate--tServerAlive--oncomponentok--tJava

on tServerAlive, you can configure the Host filed with current host value with expression:
(String)globalMap.get("row1.host")

The same syntax for Post field.

on tJava, you check the result like:
boolean result=((Boolean)globalMap.get("tServerAlive_1_SERVER_ALIVE_RESULT"));
System.out.println(result);

Best regards
Shong


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the global leader of open source data management and application integration solutions!

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy