I hope no one minds me resurrecting this thread. Using the alert works perfectly if ESP fails the job. So my next step in this little process is to determine how to use the ALERT statement to trigger the event based on a non-standard status. In this case, I am using an HTTP job, and the user status will either be "Code:202 Status: Accepted" or "Code 200 Status OK".
Essentially, if the job gets a user status of "Code:202 Status: Accepted", I need to wait 5 minutes and resubmit, and continue to do so until it gets a "Code 200 Status OK", then stop. However, if when I get a "Code:202 Status: Accepted", ESP completes the job ergo the application is complete, ergo, I cannot resubmit the job, even with an alert.
While I've added a task to keep the application alive through the process, I am having difficultly determining how to trigger the NOTIFY syntactically. So, the basic syntax is NOTIFY <condition> ALERT(ALERTNAME). According to the command reference, it is possible to use PNODE here. however, I have not been able to get this to work:
NOTIFY PNODE('Code:202 Status: Accepted') ALERT(ACPD)
I have also tried this:
IF MNSTATUS EQ 'Code:202 Status: Accepted' THEN DO
NOTIFY <what condition do I use here?> ALERT(ACPD)
ENDDO
Would it be possible to create a variable and use that for the condition?
Any advise would be helpful!
Thanks!