How can I direct flow based on the presence or absence of a file?
I often have need to have ESP flow one of two ways through an appl, depending on the presence of a file. If the file is present, take path A, otherwise, take path B.
ESP FILE_TRIGGER does not appear to support EXITCODE with FILE_TRIGGER.
The problem is when the file is not present, FILE_TRIGGER fails, and my appl goes to a failed state. This reports a failure to my Prod Support team.
Below is the ESP error presented when I try to use EXITCODE with FILE_TRIGGER
FILE_TRIGGER FILE_PRESENT_TEST1
FILENAME '/apps/files/dev/indicator_file1.go' EXIST
RUN DAILY
AGENT CIL001
EXITCODE 4 SUCCESS
ESPWSS101W INVALID COMMAND, EXITCODE
ESPWSS1800I ABOVE ERROR OCCURRED ON FOLLOWING STATEMENT IN JOB FILE_PRESENT_TEST1
ESPWSS1007I EXITCODE 4 SUCCESS
RELEASE ADD(NO_FILE_PATH) COND(RC(4))
RELEASE ADD(FILE_PRESENT_PATH) COND(RC(0))
ENDJOB
------------------------------
Cigna
------------------------------