Package org.jbpm.workflow.instance.node
Class WorkItemNodeInstance
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.WorkItemNodeInstance
- All Implemented Interfaces:
Serializable,ContextInstanceContainer,EventBasedNodeInstanceInterface,NodeInstance,org.kie.api.runtime.process.EventListener,org.kie.api.runtime.process.NodeInstance,KogitoEventListener,KogitoNodeInstance,KogitoWorkItemNodeInstance
- Direct Known Subclasses:
HumanTaskNodeInstance
public class WorkItemNodeInstance
extends StateBasedNodeInstance
implements org.kie.api.runtime.process.EventListener, ContextInstanceContainer, KogitoWorkItemNodeInstance
Runtime counterpart of a work item node.
- See Also:
-
Nested Class Summary
Nested 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 TypeMethodDescriptionvoidaddContextInstance(String contextId, ContextInstance contextInstance) voidvoidprotected voidvoidcancel(KogitoNodeInstance.CancelType cancelType) protected InternalKogitoWorkItemcreateWorkItem(WorkItemNode workItemNode) protected InternalKogitoWorkItemdecorate(InternalKogitoWorkItem kogitoWorkItem) getContextInstance(String contextId, long id) getContextInstance(Context context) getContextInstances(String contextId) Set<EventDescription<?>>String[]protected KogitoProcessRuntimeprotected WorkItemNodeprotected voidprotected voidhandleException(String exceptionName, Exception e) voidvoidvoidinternalSetProcessInstanceId(String processInstanceId) voidinternalSetWorkItem(InternalKogitoWorkItem workItem) voidinternalSetWorkItemId(String workItemId) voidinternalTrigger(KogitoNodeInstance from, String type) booleanprotected InternalKogitoWorkItemvoidremoveContextInstance(String contextId, ContextInstance contextInstance) voidvoidprotected voidvoidsignalEvent(String type, Object event) voidtriggerCompleted(InternalKogitoWorkItem workItem) voidvalidateWorkItemResultVariable(String processName, List<DataAssociation> outputs, InternalKogitoWorkItem workItem) voidworkItemAborted(InternalKogitoWorkItem workItem) voidworkItemCompleted(InternalKogitoWorkItem workItem) Methods inherited from class org.jbpm.workflow.instance.node.StateBasedNodeInstance
addTimerListener, checkProcessInstance, configureSla, configureTimerInstance, createTimerInstance, extractTimerEventInformation, getActivationType, getEventBasedNode, 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, getProcessInstance, getSlaCompliance, getSlaDueDate, getSlaTimerId, getStringId, getTriggerTime, getUniqueId, getVariable, internalSetSlaCompliance, internalSetSlaDueDate, internalSetSlaTimerId, internalSetTriggerTime, isExpression, mapDynamicOutputData, resolveContext, resolveContextInstance, resolveExpression, resolveValue, resolveValue, resolveValue, retrigger, setDynamicParameters, setId, setLevel, setMetaData, setNodeId, setNodeInstanceContainer, setProcessInstance, 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.runtime.KogitoNodeInstance
getCancelType, getLeaveTime, getMetaData, getNodeDefinitionId, getSlaDueDate, getStringId, getTriggerTime, isCancelledMethods inherited from interface org.jbpm.workflow.instance.NodeInstance
getKogitoProcessInstanceMethods inherited from interface org.kie.api.runtime.process.NodeInstance
getId, getNodeId, getNodeInstanceContainer, getProcessInstance, getVariable, setVariable
-
Constructor Details
-
WorkItemNodeInstance
public WorkItemNodeInstance()
-
-
Method Details
-
getWorkItemNode
-
getWorkItem
- Specified by:
getWorkItemin interfaceKogitoWorkItemNodeInstance
-
decorate
-
getWorkItemId
-
internalSetWorkItemId
-
internalSetWorkItem
-
isInversionOfControl
public boolean isInversionOfControl()- Overrides:
isInversionOfControlin classNodeInstanceImpl
-
internalRegisterWorkItem
public void internalRegisterWorkItem() -
internalRemoveWorkItem
public void internalRemoveWorkItem() -
internalTrigger
- Overrides:
internalTriggerin classStateBasedNodeInstance
-
handleException
-
handleException
-
newWorkItem
-
createWorkItem
-
triggerCompleted
-
cancel
- Specified by:
cancelin interfaceNodeInstance- Overrides:
cancelin classStateBasedNodeInstance
-
addEventListeners
public void addEventListeners()- Specified by:
addEventListenersin interfaceEventBasedNodeInstanceInterface- Overrides:
addEventListenersin classStateBasedNodeInstance
-
addWorkItemListener
protected void addWorkItemListener() -
removeWorkItemListener
protected void removeWorkItemListener() -
removeEventListeners
public void removeEventListeners()- Specified by:
removeEventListenersin interfaceEventBasedNodeInstanceInterface- Overrides:
removeEventListenersin classStateBasedNodeInstance
-
signalEvent
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.EventListener- Specified by:
signalEventin interfaceKogitoEventListener- Overrides:
signalEventin classStateBasedNodeInstance
-
getEventTypes
- Specified by:
getEventTypesin interfaceorg.kie.api.runtime.process.EventListener- Specified by:
getEventTypesin interfaceKogitoEventListener- Overrides:
getEventTypesin classStateBasedNodeInstance
-
workItemAborted
-
workItemCompleted
-
getNodeName
- Specified by:
getNodeNamein interfaceorg.kie.api.runtime.process.NodeInstance- Overrides:
getNodeNamein classNodeInstanceImpl
-
getContextInstances
- Specified by:
getContextInstancesin interfaceContextInstanceContainer
-
addContextInstance
- Specified by:
addContextInstancein interfaceContextInstanceContainer
-
removeContextInstance
- Specified by:
removeContextInstancein interfaceContextInstanceContainer
-
getContextInstance
- Specified by:
getContextInstancein interfaceContextInstanceContainer
-
getContextInstance
- Specified by:
getContextInstancein interfaceContextInstanceContainer
-
getContextContainer
- Specified by:
getContextContainerin interfaceContextInstanceContainer
-
validateWorkItemResultVariable
public void validateWorkItemResultVariable(String processName, List<DataAssociation> outputs, InternalKogitoWorkItem workItem) -
addExceptionProcessListener
public void addExceptionProcessListener() -
removeExceptionProcessListeners
public void removeExceptionProcessListeners() -
getExceptionHandlingProcessInstanceId
-
internalSetProcessInstanceId
-
getKieRuntimeForSubprocess
-
getEventDescriptions
- Specified by:
getEventDescriptionsin interfaceKogitoEventListener
-