cancel
Showing results for 
Search instead for 
Did you mean: 

Email notification

former_member206885
Participant
0 Kudos


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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

When using Alerting, you can define it in TAB statuses

former_member206885
Participant
0 Kudos

Hi Ooms,

We don't have Advanced Notification and Alerting module. So I wrote the above trigger for notifications. I am not sure why the trigger is not working for the jobs which goes to status 'Console' .

Thanks,

Tinku.

gmblom
Active Contributor
0 Kudos

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

former_member206885
Participant
0 Kudos


Hello Gerben,

Thank you so much for clearing my question. As our Client is not willing to go for the Alerting modue, we set up the alerts using events for the jobs in Console status.

Regards,

Tinku

Answers (0)