Example of Configuring the Event Listener for email Notifications
You can set up an event listener in your environment to get business process deadline notifications by email.
The following is an example of how to set up an event listener for notifications by email. The following properties are mentioned in the lweventrules.properties file. Define the following rules in the customer_overrides.properties file:
id.rule11=BATCH_FIRST_NOTIFY
levels.rule11=Normal
name.rule11=DEADLINE_BATCH_FIRST_NOTIFY_LEVEL_Normal
expression.rule11= contains(ExceptionLevel,'Normal') and
contains(eventType,'Workflow.DeadlineEvent.BATCH_FIRST_NOTIFY')
action.rule11.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEve
ntRunnable
id.rule21=BATCH_SECOND_NOTIFY
levels.rule21=Abnormal
name.rule21=DEADLINE_BATCH_SECOND_NOTIFY_LEVEL_Abnormal
expression.rule21= contains(ExceptionLevel,'Abnormal') and
contains(eventType,'Workflow.DeadlineEvent.BATCH_SECOND_NOTIFY')
action.rule21.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEve
ntRunnable
id.rule31=BATCH_FINAL_NOTIFY
levels.rule31=Exceptional
name.rule31=DEADLINE_BATCH_FINAL_NOTIFY_LEVEL_Exceptional
expression.rule31= contains( ExceptionLevel,'Exceptional') and
contains(eventType,'Workflow.DeadlineEvent.BATCH_FINAL_NOTIFY')
action.rule31.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEve
ntRunnable
id.rule41=FIRST_NOTIFY
levels.rule41=Normal
name.rule41=DEADLINE_FIRST_NOTIFY_LEVEL_Normal
expression.rule41= contains(ExceptionLevel,'Normal') and
contains(eventType,'Workflow.DeadlineEvent.FIRST_NOTIFY')
action.rule41.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEve
ntRunnable
id.rule51=SECOND_NOTIFY
levels.rule51=Abnormal
name.rule51=DEADLINE_SECOND_NOTIFY_LEVEL_Abnormal
expression.rule51= contains(ExceptionLevel,'Abnormal') and
contains(eventType,'Workflow.DeadlineEvent.SECOND_NOTIFY') action.rule51.1=
java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEventRunnable
id.rule61=FINAL_NOTIFY
levels.rule61=Exceptional
name.rule61=DEADLINE_FINAL_NOTIFY_LEVEL_Exceptional
expression.rule61= contains(ExceptionLevel,'Exceptional') and
contains(eventType,'Workflow.DeadlineEvent.FINAL_NOTIFY')
action.rule61.1=java:com.sterlingcommerce.woodstock.event.listeners.rule.EmailEve
ntRunnable
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.