One of the jobs that we do is schedule other entities to run. In return the output section has HTML from the scheduler doing it's work. Is there a way to search through the HTML that is returned for failure conditions to trigger the scheduler to fail for that job? (i.e. show red in the job activity), and hence email us as well.
Output as such:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>ReportCaster API Message Template</title>
<!--RETURNCODE=89-->
<style>
h1 { font-family: arial;
font-weight: bold;
font-size: 12pt;
color: white;
background-color: blue; }
td { font-family: arial;
font-size: 10pt; }
</style></head><body><br><br>
<table BORDER="0" WIDTH="80%" align="center">
<tr><td><H1>ReportCaster Message</H1></td></tr></table>
<TABLE BORDER="0" WIDTH="80%" align="center">
<TR><TD>
Authentication failed
</TD></TR></TABLE></body></html>
I would like to know how (outside of doing something in a shell script) that we can have the scheduler look for textual values (i.e. failed, or HTTP: returns), to indicate completion abnormally...