Information Technology Reference
In-Depth Information
by a specific process instance execution. It is one of the most used points for pro-
cess/rule interaction.
Another component that we previously mentioned in Chapter 8 , Implementing Persistence
and Transactions , is called event listeners. There are three types of event listeners we can
add to a KIE session through the addEventListener method:
ProcessEventListener : This event listener, as previously mentioned, ex-
poses methods to add specific hooks to all changes in a process instance internal
state
AgendaEventListener : This event listener exposes methods to notify when
a match to a rule constraint is detected or negated, changes in the activated groups
of rules, and when each rule is fired within the KIE session
RuleRuntimeEventListener : This event listener allows us to follow all
changes done to the objects in the rule execution memory (insertions, updates,
and deletions)
Now that we have mentioned these components, we can see them in action in the
process-rules-examples project in the next section.
Search WWH ::




Custom Search