Email notification
Hi All,
We are not able to receive the notifications for the jobs which goes to Status 'Console'. Please help how can I modify my code.
String strLogFileName = "";
String ccmsjob = "SAP_CcmsJob";
String bwpc = "SAP_BW_ProcessChain";
String bwp = "SAP_BW_Process";
if((jcsPostRunningContext.getNewStatus().equals(JobStatus.Error) ||
jcsPostRunningContext.getNewStatus().equals(JobStatus.Overdue) ||
jcsPostRunningContext.getNewStatus().equals(JobStatus.Killed) ||
jcsPostRunningContext.getNewStatus().equals(JobStatus.Console))
&& ! ( jcsJob.isActualJobChain())
&& ! ( ccmsjob.equals(jcsJob.getJobDefinition().getName()))
&& ! ( bwpc.equals(jcsJob.getJobDefinition().getName()))
&& ! ( bwp.equals(jcsJob.getJobDefinition().getName()))
)
Thanks,
Tinku
Gerben Blom replied
Hello,
There are some restrictions to triggers. One of them is that they do not fire for all statuses. As Console is not a final status, the post running trigger does not fire.
If you want to setup a proper notification system use the module.
Regards Gerben