Class RuleAwareProcessEventListener
java.lang.Object
org.jbpm.process.instance.event.listeners.RuleAwareProcessEventListener
- All Implemented Interfaces:
EventListener,org.kie.api.event.process.ProcessEventListener
public class RuleAwareProcessEventListener
extends Object
implements org.kie.api.event.process.ProcessEventListener
Process event listener that is responsible for managing process instance as fact
so rules can reason over it. It ensure that process instance is inserted as soon as it starts
and gets retracted as soon as process instance completes. In addition it updates process instance
whenever process variable is updated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event) voidafterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event) voidafterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event) voidafterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event) voidafterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event) voidbeforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event) voidbeforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event) voidbeforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event) voidbeforeProcessStarted(org.kie.api.event.process.ProcessStartedEvent event) voidbeforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event) protected org.kie.api.runtime.rule.FactHandlegetProcessInstanceFactHandle(String processInstanceId, org.kie.api.runtime.KieRuntime kruntime) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.api.event.process.ProcessEventListener
afterSLAViolated, beforeSLAViolated, onError, onMessage, onMigration, onSignal
-
Constructor Details
-
RuleAwareProcessEventListener
public RuleAwareProcessEventListener()
-
-
Method Details
-
beforeProcessStarted
public void beforeProcessStarted(org.kie.api.event.process.ProcessStartedEvent event) - Specified by:
beforeProcessStartedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessStarted
public void afterProcessStarted(org.kie.api.event.process.ProcessStartedEvent event) - Specified by:
afterProcessStartedin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeProcessCompleted
public void beforeProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event) - Specified by:
beforeProcessCompletedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterProcessCompleted
public void afterProcessCompleted(org.kie.api.event.process.ProcessCompletedEvent event) - Specified by:
afterProcessCompletedin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeTriggered
public void beforeNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event) - Specified by:
beforeNodeTriggeredin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeTriggered
public void afterNodeTriggered(org.kie.api.event.process.ProcessNodeTriggeredEvent event) - Specified by:
afterNodeTriggeredin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeNodeLeft
public void beforeNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event) - Specified by:
beforeNodeLeftin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterNodeLeft
public void afterNodeLeft(org.kie.api.event.process.ProcessNodeLeftEvent event) - Specified by:
afterNodeLeftin interfaceorg.kie.api.event.process.ProcessEventListener
-
beforeVariableChanged
public void beforeVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event) - Specified by:
beforeVariableChangedin interfaceorg.kie.api.event.process.ProcessEventListener
-
afterVariableChanged
public void afterVariableChanged(org.kie.api.event.process.ProcessVariableChangedEvent event) - Specified by:
afterVariableChangedin interfaceorg.kie.api.event.process.ProcessEventListener
-
getProcessInstanceFactHandle
protected org.kie.api.runtime.rule.FactHandle getProcessInstanceFactHandle(String processInstanceId, org.kie.api.runtime.KieRuntime kruntime)
-