Package org.jbpm.workflow.instance.node
Class EventNodeInstance
- java.lang.Object
-
- org.jbpm.workflow.instance.impl.NodeInstanceImpl
-
- org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
-
- org.jbpm.workflow.instance.node.EventNodeInstance
-
- All Implemented Interfaces:
Serializable
,EventBasedNodeInstanceInterface
,EventNodeInstanceInterface
,NodeInstance
,org.kie.api.runtime.process.NodeInstance
- Direct Known Subclasses:
AsyncEventNodeInstance
,BoundaryEventNodeInstance
public class EventNodeInstance extends ExtendedNodeInstanceImpl implements EventNodeInstanceInterface, EventBasedNodeInstanceInterface
Runtime counterpart of an event node.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
NodeInstanceImpl.NodeInstanceTrigger
-
Nested classes/interfaces inherited from interface org.jbpm.workflow.instance.NodeInstance
NodeInstance.CancelType
-
-
Field Summary
-
Fields inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
cancelType, dynamicParameters, logger, slaCompliance, slaDueDate, slaTimerId, triggerTime, UNIQUE_ID
-
Fields inherited from interface org.jbpm.workflow.instance.NodeInstance
METADATA_WRAP_ASYNC_NODE
-
-
Constructor Summary
Constructors Constructor Description EventNodeInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addEventListeners()
protected void
addTimerListener()
void
cancel(NodeInstance.CancelType cancelType)
protected void
configureSla()
protected org.kie.api.runtime.process.EventListener
getEventListener()
EventNode
getEventNode()
String
getEventType()
protected void
handleSLAViolation()
void
internalTrigger(org.kie.api.runtime.process.NodeInstance from, String type)
void
removeEventListeners()
void
removeTimerListeners()
void
signalEvent(String type, Object event)
void
triggerCompleted()
protected void
triggerCompleted(String type, Object event)
-
Methods inherited from class org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
getExtendedNode, handleAssignment, mapOutputSetVariables, mapOutputSetVariables, triggerCompleted, triggerCompleted, triggerEvent
-
Methods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
cancel, executeAction, followConnection, getCancelType, getExecutionErrorHandler, getFrom, getId, getLevel, getMetaData, getMetaData, getNode, getNodeId, getNodeInstanceContainer, getNodeName, getProcessInstance, getSlaCompliance, getSlaDueDate, getSlaTimerId, getTriggerTime, getUniqueId, getVariable, internalSetSlaCompliance, internalSetSlaDueDate, internalSetSlaTimerId, isAborted, isInversionOfControl, resolveContext, resolveContextInstance, resolveContextInstance, retrigger, setAborted, setDynamicParameters, setId, setLevel, setMetaData, setNodeId, setNodeInstanceContainer, setProcessInstance, setVariable, trigger, triggerConnection, triggerNode, triggerNode, triggerNodeInstance, triggerNodeInstance
-
-
-
-
Method Detail
-
signalEvent
public void signalEvent(String type, Object event)
- Specified by:
signalEvent
in interfaceEventNodeInstanceInterface
-
internalTrigger
public void internalTrigger(org.kie.api.runtime.process.NodeInstance from, String type)
- Overrides:
internalTrigger
in classExtendedNodeInstanceImpl
-
configureSla
protected void configureSla()
- Overrides:
configureSla
in classNodeInstanceImpl
-
handleSLAViolation
protected void handleSLAViolation()
-
addTimerListener
protected void addTimerListener()
-
removeTimerListeners
public void removeTimerListeners()
-
getEventNode
public EventNode getEventNode()
-
triggerCompleted
public void triggerCompleted()
-
cancel
public void cancel(NodeInstance.CancelType cancelType)
- Specified by:
cancel
in interfaceNodeInstance
- Overrides:
cancel
in classNodeInstanceImpl
-
addEventListeners
public void addEventListeners()
- Specified by:
addEventListeners
in interfaceEventBasedNodeInstanceInterface
-
removeEventListeners
public void removeEventListeners()
- Specified by:
removeEventListeners
in interfaceEventBasedNodeInstanceInterface
-
getEventType
public String getEventType()
-
getEventListener
protected org.kie.api.runtime.process.EventListener getEventListener()
-
-