Package org.jbpm.workflow.instance.node
Class StateBasedNodeInstance
- java.lang.Object
-
- org.jbpm.workflow.instance.impl.NodeInstanceImpl
-
- org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
-
- org.jbpm.workflow.instance.node.StateBasedNodeInstance
-
- All Implemented Interfaces:
Serializable,EventBasedNodeInstanceInterface,NodeInstance,org.kie.api.runtime.process.EventListener,org.kie.api.runtime.process.NodeInstance
- Direct Known Subclasses:
CompositeNodeInstance,MilestoneNodeInstance,RuleSetNodeInstance,SubProcessNodeInstance,TimerNodeInstance,WorkItemNodeInstance
public abstract class StateBasedNodeInstance extends ExtendedNodeInstanceImpl implements EventBasedNodeInstanceInterface, org.kie.api.runtime.process.EventListener
- 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, slaCompliance, slaDueDate, slaTimerId, triggerTime, UNIQUE_ID
-
Fields inherited from interface org.jbpm.workflow.instance.NodeInstance
METADATA_WRAP_ASYNC_NODE
-
-
Constructor Summary
Constructors Constructor Description StateBasedNodeInstance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEventListeners()protected voidaddTimerListener()voidcancel(NodeInstance.CancelType cancelType)protected booleancheckDeclarationMatch(org.kie.api.runtime.rule.Match match, String matchVariable)protected booleancheckProcessInstance(org.drools.core.spi.Activation activation)protected voidconfigureSla()protected voidconfigureTimerInstance(Timer timer, TimerInstance timerInstance)protected TimerInstancecreateTimerInstance(Timer timer)protected StringgetActivationType()StateBasedNodegetEventBasedNode()String[]getEventTypes()List<Long>getTimerInstances()protected voidhandleSLAViolation()voidinternalSetTimerInstances(List<Long> timerInstances)voidinternalTrigger(org.kie.api.runtime.process.NodeInstance from, String type)protected voidmapDynamicOutputData(Map<String,Object> results)protected voidregisterBoundaryEvents()voidremoveEventListeners()protected StringresolveVariable(String s)voidsignalEvent(String type, Object event)voidtriggerCompleted()protected voidtriggerCompleted(String type, boolean remove)protected voidtriggerTimer(TimerInstance timerInstance)-
Methods inherited from class org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
getExtendedNode, handleAssignment, mapOutputSetVariables, mapOutputSetVariables, 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
-
getEventBasedNode
public StateBasedNode getEventBasedNode()
-
internalTrigger
public void internalTrigger(org.kie.api.runtime.process.NodeInstance from, String type)- Overrides:
internalTriggerin classExtendedNodeInstanceImpl
-
registerBoundaryEvents
protected void registerBoundaryEvents()
-
configureSla
protected void configureSla()
- Overrides:
configureSlain classNodeInstanceImpl
-
createTimerInstance
protected TimerInstance createTimerInstance(Timer timer)
-
configureTimerInstance
protected void configureTimerInstance(Timer timer, TimerInstance timerInstance)
-
handleSLAViolation
protected void handleSLAViolation()
-
signalEvent
public void signalEvent(String type, Object event)
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.EventListener
-
triggerTimer
protected void triggerTimer(TimerInstance timerInstance)
-
getEventTypes
public String[] getEventTypes()
- Specified by:
getEventTypesin interfaceorg.kie.api.runtime.process.EventListener
-
triggerCompleted
public void triggerCompleted()
-
addEventListeners
public void addEventListeners()
- Specified by:
addEventListenersin interfaceEventBasedNodeInstanceInterface
-
addTimerListener
protected void addTimerListener()
-
removeEventListeners
public void removeEventListeners()
- Specified by:
removeEventListenersin interfaceEventBasedNodeInstanceInterface
-
triggerCompleted
protected void triggerCompleted(String type, boolean remove)
- Overrides:
triggerCompletedin classExtendedNodeInstanceImpl
-
cancel
public void cancel(NodeInstance.CancelType cancelType)
- Specified by:
cancelin interfaceNodeInstance- Overrides:
cancelin classNodeInstanceImpl
-
getActivationType
protected String getActivationType()
-
checkProcessInstance
protected boolean checkProcessInstance(org.drools.core.spi.Activation activation)
-
checkDeclarationMatch
protected boolean checkDeclarationMatch(org.kie.api.runtime.rule.Match match, String matchVariable)
-
-