Enabling Business Process Deadline E-mail Notifications

You can set up an event listener in your environment to get Business Process deadline notifications by e-mail.

You must turn on the listeners to send out the e-mail notifications. Overrides or rules are required for the e-mail notifications to work.

  1. Define the overrides or rules in the customer_overrides.properties file.

    The following is an example of how to set up an event listener for notifications by e-mail. The following properties are mentioned in the lweventrules.properties file.

    
    lweventrules.id.rule11=BATCH_FIRST_NOTIFY
    lweventrules.levels.rule11=Normal
    lweventrules.name.rule11=DEADLINE_BATCH_FIRST_NOTIFY_LEVEL_Normal
    lweventrules.expression.rule11=contains(ExceptionLevel,'Normal') and contains(eventType,'Workflow.DeadlineEvent.BATCH_FIRST_NOTIFY')
    lweventrules.action.rule11.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
    lweventrules.id.rule21=BATCH_SECOND_NOTIFY
    lweventrules.levels.rule21=Abnormal
    lweventrules.name.rule21=DEADLINE_BATCH_SECOND_NOTIFY_LEVEL_Abnormal
    lweventrules.expression.rule21=contains(ExceptionLevel,'Abnormal') and contains(eventType,'Workflow.DeadlineEvent.BATCH_SECOND_NOTIFY')
    .action.rule21.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
    lweventrules.id.rule31=BATCH_FINAL_NOTIFY
    lweventlweventrulesrules.levels.rule31=Exceptional
    lweventrules.name.rule31=DEADLINE_BATCH_FINAL_NOTIFY_LEVEL_Exceptional
    lweventrules.expression.rule31= contains( ExceptionLevel,'Exceptional') and contains(eventType,'Workflow.DeadlineEvent.BATCH_FINAL_NOTIFY')
    lweventrules.action.rule31.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
    lweventrules.id.rule41=FIRST_NOTIFY
    lweventrules.levels.rule41=Normal
    lweventrules.name.rule41=DEADLINE_FIRST_NOTIFY_LEVEL_Normal
    lweventrules.expression.rule41=contains(ExceptionLevel,'Normal') and contains(eventType,'Workflow.DeadlineEvent.FIRST_NOTIFY')
    lweventrules.action.rule41.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
    lweventrules.id.rule51=SECOND_NOTIFY
    lweventrules.levels.rule51=Abnormal
    lweventrules.name.rule51=DEADLINE_SECOND_NOTIFY_LEVEL_Abnormal
    lweventrules.expression.rule51=contains(ExceptionLevel,'Abnormal') and contains(eventType,'Workflow.DeadlineEvent.SECOND_NOTIFY')
    lweventrules.action.rule51.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
    lweventrules.id.rule61=FINAL_NOTIFY
    lweventrules.levels.rule61=Exceptional
    lweventrules.name.rule61=DEADLINE_FINAL_NOTIFY_LEVEL_Exceptional
    lweventrules.expression.rule61=contains(ExceptionLevel,'Exceptional') and contains(eventType,'Workflow.DeadlineEvent.FINAL_NOTIFY')
    lweventrules.action.rule61.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
    
  2. Stop and restart Sterling B2B Integrator for the changes to take effect.
Note: You could choose to be notified in a different manner, by replacing the following rule:

action.rule31.1=java:com.sterlingcommerce.woodstock.event.listeners.rule

The rule mentioned above can be replaced with the following:

action.rule31.1=java:com.sterlingcommerce.woodstock.dmi.routing.RouterEventNotifier

You can configure dbDeadLineThread=true (default value is false) in noapp.properties_platform_ifcresources_ext. You can override the same property in the customer_overrides.properties file.

To receive deadline notification for a business process, you should edit the business process to be monitored, enable business process deadline settings, and configure first notification and second notification times appropriately.