Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am looking to find out how to track or check the status if the upload to the FTP site from a local network was successful and i am using tftpput to accomplish this task.
Can i use any of the global variables to validate the status? and delete the file network drive(source) only and if the upload was successful without any failures at the ftp side.
Which of these variables would be appropriate and what would be the examples can you help?
GLOBAL VARIABLES:
System.out.println ("current status: "+((String)globalMap.get("tFTPPut_1_CURRENT_STATUS")));
System.out.println ("CURRENT FILE EXISTS: "+((Boolean)globalMap.get("tFTPPut_1_CURRENT_FILE_EXISTS")));
System.out.println ("ERROR: "+((String)globalMap.get("tFTPPut_1_ERROR_MESSAGE")));
System.out.println ("TRANSFER: "+((String)globalMap.get("tFTPPut_1_TRANSFER_MESSAGES")));
Sample job design:
tftpput---RUN IF-->status =? ---->tfiledelete
tftpput---RUN IF-->status=failure-->abort
Hi
Check the 'Die on error' box and use onSubjobOK/OnSubjobError trigger, eg:
tftpput
---onsubjobOK--->tfiledelete
---onsubjobError-->do something
Regards
Shong