Fixed
Details
Assignee
Alejandro GalueAlejandro GalueReporter
Alejandro GalueAlejandro GalueComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Alejandro Galue
Alejandro GalueReporter
Alejandro Galue
Alejandro GalueComponents
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created March 1, 2017 at 3:23 PM
Updated March 8, 2017 at 4:11 PM
Resolved March 8, 2017 at 11:31 AM
Normally, the event processing mode defaults to
cloud
. This works when using a "discrete" triggering method (i.e. for example, trigger the execution of the rules when an OpenNMS events comes in).In order to use built-in feature of Drools to advanced and complex event processing (i.e. Drools Fusion, CEP, Temporal Reasoning), you have to use
stream
for the event processing mode. Then, instead of callingfireAllRules
to trigger the execution of the rules, it is advised to have a dedicated thread that runsfireUnitHalt
.This thread will be running until the
halt
method is called from the session. In theory, as the session lives while OpenNMS is running there is no need to call it (for the same reason we don't need to calldispose
). These methods are useful if we want, for example, persist the current state of the working memory on disk.