Package org.jbpm.workflow.instance.node
Class CompositeNodeInstance
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.CompositeNodeInstance
- All Implemented Interfaces:
Serializable,EventBasedNodeInstanceInterface,EventNodeInstanceInterface,NodeInstance,NodeInstanceContainer,org.kie.api.runtime.process.NodeInstance,org.kie.api.runtime.process.NodeInstanceContainer,KogitoEventListener,KogitoNodeInstance,KogitoNodeInstanceContainer
- Direct Known Subclasses:
CompositeContextNodeInstance
public class CompositeNodeInstance
extends StateBasedNodeInstance
implements NodeInstanceContainer, EventNodeInstanceInterface, EventBasedNodeInstanceInterface
Runtime counterpart of a composite node.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassstatic classNested classes/interfaces inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
NodeInstanceImpl.NodeInstanceTriggerNested classes/interfaces inherited from interface org.kie.kogito.internal.process.runtime.KogitoNodeInstance
KogitoNodeInstance.CancelType -
Field Summary
Fields inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
cancelType, dynamicParameters, leaveTime, slaCompliance, slaDueDate, slaTimerId, triggerTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddNodeInstance(NodeInstance nodeInstance) voidcancel(KogitoNodeInstance.CancelType cancelType) protected CompositeNodeintgetFirstNodeInstance(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) getKogitoNodeInstances(Predicate<KogitoNodeInstance> filter, boolean recursive) intgetLevelForNode(String uniqueID) org.kie.api.definition.process.NodeContainerorg.kie.api.runtime.process.NodeInstancegetNodeInstance(long l) getNodeInstance(String nodeInstanceId) getNodeInstance(String nodeInstanceId, boolean recursive) getNodeInstance(org.kie.api.definition.process.Node node) Collection<org.kie.api.runtime.process.NodeInstance>getNodeInstances(boolean recursive) getNodeInstances(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) getNodeInstances(org.kie.api.definition.process.WorkflowElementIdentifier nodeId, List<NodeInstance> currentView) intgetState()voidinternalTrigger(KogitoNodeInstance from, String type) protected voidinternalTriggerOnlyParent(KogitoNodeInstance from, String type) protected booleanvoidnodeInstanceCompleted(NodeInstance nodeInstance, String outType) voidvoidremoveNodeInstance(NodeInstance nodeInstance) voidsetCurrentLevel(int currentLevel) voidsetProcessInstance(WorkflowProcessInstance processInstance) voidsetState(int state) voidsignalEvent(String type, Object event) voidvoidtriggerCompleted(String outType) Methods inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
addTimerListener, checkProcessInstance, configureSla, configureTimerInstance, createTimerInstance, extractTimerEventInformation, getActivationType, getEventBasedNode, getEventTypes, getProcessContext, getTimerInstances, getTimerInstancesReference, handleSLAViolation, internalSetTimerInstances, internalSetTimerInstancesReference, triggerCompleted, triggerCompletedMethods inherited from class org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl
getExtendedNode, triggerCompleted, triggerEventMethods inherited from class org.jbpm.workflow.instance.impl.NodeInstanceImpl
cancel, captureError, executeAction, executeAction, followConnection, getCancelType, getId, getLeaveTime, getLevel, getMetaData, getMetaData, getNode, getNodeDefinitionId, getNodeId, getNodeInstanceContainer, getNodeName, getProcessInstance, getSlaCompliance, getSlaDueDate, getSlaTimerId, getStringId, getTriggerTime, getUniqueId, getVariable, internalSetSlaCompliance, internalSetSlaDueDate, internalSetSlaTimerId, internalSetTriggerTime, isExpression, isInversionOfControl, mapDynamicOutputData, resolveContext, resolveContextInstance, resolveExpression, resolveValue, resolveValue, resolveValue, retrigger, setDynamicParameters, setId, setLevel, setMetaData, setNodeId, setNodeInstanceContainer, setVariable, trigger, triggerConnection, triggerNode, triggerNode, triggerNodeInstance, triggerNodeInstanceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kie.kogito.internal.process.event.KogitoEventListener
getEventDescriptionsMethods inherited from interface org.kie.kogito.internal.process.runtime.KogitoNodeInstance
isCancelledMethods inherited from interface org.kie.kogito.internal.process.runtime.KogitoNodeInstanceContainer
getKogitoNodeInstancesMethods inherited from interface org.jbpm.workflow.instance.NodeInstance
getKogitoProcessInstanceMethods inherited from interface org.jbpm.workflow.instance.NodeInstanceContainer
getByNodeDefinitionId, getNodeByPredicate, resolveAsync
-
Constructor Details
-
CompositeNodeInstance
public CompositeNodeInstance()
-
-
Method Details
-
getLevelForNode
- Specified by:
getLevelForNodein interfaceNodeInstanceContainer
-
setProcessInstance
- Overrides:
setProcessInstancein classNodeInstanceImpl
-
getCompositeNode
-
getNodeContainer
public org.kie.api.definition.process.NodeContainer getNodeContainer()- Specified by:
getNodeContainerin interfaceNodeInstanceContainer
-
internalTrigger
- Overrides:
internalTriggerin classStateBasedNodeInstance
-
internalTriggerOnlyParent
-
isLinkedIncomingNodeRequired
protected boolean isLinkedIncomingNodeRequired() -
triggerCompleted
-
cancel
- Specified by:
cancelin interfaceNodeInstance- Overrides:
cancelin classStateBasedNodeInstance
-
addNodeInstance
- Specified by:
addNodeInstancein interfaceNodeInstanceContainer
-
removeNodeInstance
- Specified by:
removeNodeInstancein interfaceNodeInstanceContainer
-
getNodeInstances
- Specified by:
getNodeInstancesin interfaceorg.kie.api.runtime.process.NodeInstanceContainer
-
getNodeInstance
public org.kie.api.runtime.process.NodeInstance getNodeInstance(long l) - Specified by:
getNodeInstancein interfaceorg.kie.api.runtime.process.NodeInstanceContainer
-
getNodeInstances
- Specified by:
getNodeInstancesin interfaceNodeInstanceContainer
-
getKogitoNodeInstances
public Collection<KogitoNodeInstance> getKogitoNodeInstances(Predicate<KogitoNodeInstance> filter, boolean recursive) - Specified by:
getKogitoNodeInstancesin interfaceKogitoNodeInstanceContainer
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceKogitoNodeInstanceContainer
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceNodeInstanceContainer
-
getFirstNodeInstance
public NodeInstance getFirstNodeInstance(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) - Specified by:
getFirstNodeInstancein interfaceNodeInstanceContainer
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceNodeInstanceContainer
-
signalEvent
- Specified by:
signalEventin interfaceEventNodeInstanceInterface
-
signalEvent
- Specified by:
signalEventin interfaceKogitoEventListener- Overrides:
signalEventin classStateBasedNodeInstance
-
getNodeInstances
public List<NodeInstance> getNodeInstances(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) -
getNodeInstances
public List<NodeInstance> getNodeInstances(org.kie.api.definition.process.WorkflowElementIdentifier nodeId, List<NodeInstance> currentView) -
addEventListeners
public void addEventListeners()- Specified by:
addEventListenersin interfaceEventBasedNodeInstanceInterface- Overrides:
addEventListenersin classStateBasedNodeInstance
-
removeEventListeners
public void removeEventListeners()- Specified by:
removeEventListenersin interfaceEventBasedNodeInstanceInterface- Overrides:
removeEventListenersin classStateBasedNodeInstance
-
nodeInstanceCompleted
- Specified by:
nodeInstanceCompletedin interfaceNodeInstanceContainer
-
setState
public void setState(int state) - Specified by:
setStatein interfaceNodeInstanceContainer
-
getState
public int getState()- Specified by:
getStatein interfaceNodeInstanceContainer
-
getCurrentLevel
public int getCurrentLevel()- Specified by:
getCurrentLevelin interfaceNodeInstanceContainer
-
setCurrentLevel
public void setCurrentLevel(int currentLevel) - Specified by:
setCurrentLevelin interfaceNodeInstanceContainer
-
getIterationLevels
- Specified by:
getIterationLevelsin interfaceNodeInstanceContainer
-