Skip to Content

Overdue notifications

Hi All,


We are able to receive notifications for jobs which are errored or Killed with the below trigger. But we are not receiving the notifications for 'overdue' jobs.

{
String strLogFileName = "";

if((jcsPostRunningContext.getNewStatus().equals(JobStatus.Error) ||
jcsPostRunningContext.getNewStatus().equals(JobStatus.Overdue) ||
jcsPostRunningContext.getNewStatus().equals(JobStatus.Killed))
)
{

{

String email = "abc@ghi.com";
String subject = "Redwood job abend";
String strText = "Job id=" + jcsJob.getJobId().intValue() + ", Job name=" + jcsJob.getJobDefinition().getName() + ", Job Description=" + jcsJob.getDescription() + " , has abended";
JobDefinition jd = jcsSession.getJobDefinitionByName("System_Mail_Send");

{
Job subJob = jd.prepare();
subJob.getJobParameterByName("To").setInValueString(email);
subJob.getJobParameterByName("Subject").setInValueString(subject);
subJob.getJobParameterByName("Text").setInValueString(strText);
}
}

}
}

Can any one please advise..do I need to add any extra lines of code to receive notifications for overdue jobs.

Regards,

Lohit

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on May 11, 2015 at 07:27 AM

    Hello,

    Overdue is not a final status. You can set the event on overdue on a definition to trigger an event when a process goes overdue and react on that.

    Regards Gerben

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello,

      make the time window close for a short amount of time to trigger the overdue. But set the 'Status On Overdue' on the job chain to 'Scheduled', this will keep the job in an active state without needing manual interaction. The Event on overdue can be used for notification.


      Regards Gerben

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.