Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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.
Labels (4)
1 Reply
Anonymous
Not applicable
Author

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