Package org.jbpm.workflow.instance.node
Class RuleSetNodeInstance
- java.lang.Object
-
- org.jbpm.workflow.instance.impl.NodeInstanceImpl
-
- org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
-
- org.jbpm.workflow.instance.node.StateBasedNodeInstance
-
- org.jbpm.workflow.instance.node.RuleSetNodeInstance
-
- All Implemented Interfaces:
Serializable
,ContextInstanceContainer
,EventBasedNodeInstanceInterface
,NodeInstance
,org.kie.api.runtime.process.EventListener
,org.kie.api.runtime.process.NodeInstance
public class RuleSetNodeInstance extends StateBasedNodeInstance implements org.kie.api.runtime.process.EventListener, ContextInstanceContainer
Runtime counterpart of a ruleset 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, slaCompliance, slaDueDate, slaTimerId, triggerTime, UNIQUE_ID
-
Fields inherited from interface org.jbpm.workflow.instance.NodeInstance
METADATA_WRAP_ASYNC_NODE
-
-
Constructor Summary
Constructors Constructor Description RuleSetNodeInstance()
-
Method Summary
-
Methods inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
addTimerListener, checkDeclarationMatch, checkProcessInstance, configureSla, configureTimerInstance, createTimerInstance, getActivationType, getEventBasedNode, getEventTypes, getTimerInstances, handleSLAViolation, internalSetTimerInstances, mapDynamicOutputData, registerBoundaryEvents, resolveVariable, triggerCompleted, triggerCompleted, triggerTimer
-
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
-
getRuleSetNode
protected RuleSetNode getRuleSetNode()
-
internalTrigger
public void internalTrigger(org.kie.api.runtime.process.NodeInstance from, String type)
- Overrides:
internalTrigger
in classStateBasedNodeInstance
-
addEventListeners
public void addEventListeners()
- Specified by:
addEventListeners
in interfaceEventBasedNodeInstanceInterface
- Overrides:
addEventListeners
in classStateBasedNodeInstance
-
removeEventListeners
public void removeEventListeners()
- Specified by:
removeEventListeners
in interfaceEventBasedNodeInstanceInterface
- Overrides:
removeEventListeners
in classStateBasedNodeInstance
-
cancel
public void cancel(NodeInstance.CancelType cancelType)
- Specified by:
cancel
in interfaceNodeInstance
- Overrides:
cancel
in classStateBasedNodeInstance
-
signalEvent
public void signalEvent(String type, Object event)
- Specified by:
signalEvent
in interfaceorg.kie.api.runtime.process.EventListener
- Overrides:
signalEvent
in classStateBasedNodeInstance
-
retractFacts
public void retractFacts()
-
evaluateParameters
protected Map<String,Object> evaluateParameters(RuleSetNode ruleSetNode)
-
getSourceParameters
protected Map<String,Object> getSourceParameters(DataAssociation association)
-
setFactHandles
public void setFactHandles(Map<String,org.kie.api.runtime.rule.FactHandle> factHandles)
-
getRuleFlowGroup
public String getRuleFlowGroup()
-
setRuleFlowGroup
public void setRuleFlowGroup(String ruleFlowGroup)
-
actAsWaitState
protected boolean actAsWaitState()
-
getContextInstances
public List<ContextInstance> getContextInstances(String contextId)
- Specified by:
getContextInstances
in interfaceContextInstanceContainer
-
addContextInstance
public void addContextInstance(String contextId, ContextInstance contextInstance)
- Specified by:
addContextInstance
in interfaceContextInstanceContainer
-
removeContextInstance
public void removeContextInstance(String contextId, ContextInstance contextInstance)
- Specified by:
removeContextInstance
in interfaceContextInstanceContainer
-
getContextInstance
public ContextInstance getContextInstance(String contextId, long id)
- Specified by:
getContextInstance
in interfaceContextInstanceContainer
-
getContextInstance
public ContextInstance getContextInstance(Context context)
- Specified by:
getContextInstance
in interfaceContextInstanceContainer
-
getContextContainer
public ContextContainer getContextContainer()
- Specified by:
getContextContainer
in interfaceContextInstanceContainer
-
-