Package org.jbpm.workflow.instance.impl
Class WorkflowProcessInstanceImpl
java.lang.Object
org.jbpm.process.instance.impl.ProcessInstanceImpl
org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl
- All Implemented Interfaces:
Serializable,ContextableInstance,ContextInstanceContainer,ProcessInstance,NodeInstanceContainer,WorkflowProcessInstance,org.kie.api.runtime.process.EventListener,org.kie.api.runtime.process.NodeInstanceContainer,org.kie.api.runtime.process.ProcessInstance,org.kie.api.runtime.process.WorkflowProcessInstance,KogitoEventListener,KogitoNodeInstanceContainer,KogitoProcessInstance,KogitoWorkflowProcessInstance
- Direct Known Subclasses:
RuleFlowProcessInstance
public abstract class WorkflowProcessInstanceImpl
extends ProcessInstanceImpl
implements WorkflowProcessInstance
Default implementation of a RuleFlow process instance.
- See Also:
-
Field Summary
Fields inherited from interface org.kie.kogito.internal.process.runtime.KogitoProcessInstance
SLA_ABORTED, SLA_MET, SLA_NA, SLA_PENDING, SLA_VIOLATED, STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_ERROR, STATE_PENDING, STATE_SUSPENDEDFields inherited from interface org.kie.api.runtime.process.ProcessInstance
SLA_ABORTED, SLA_MET, SLA_NA, SLA_PENDING, SLA_VIOLATED, STATE_ABORTED, STATE_ACTIVE, STATE_COMPLETED, STATE_PENDING, STATE_SUSPENDED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActivatingNodeId(String uniqueId) voidaddCompletedNodeId(String uniqueId) voidaddEventListener(String type, KogitoEventListener listener, boolean external) voidaddNodeInstance(NodeInstance nodeInstance) org.kie.kogito.timer.TimerInstanceconfigureSLATimer(String slaDueDateExpression) voidvoidorg.kie.api.runtime.rule.AgendaFilterintSet<EventDescription<?>>String[]getFirstNodeInstance(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) getKogitoNodeInstances(Predicate<KogitoNodeInstance> filter, boolean recursive) intgetLevelForNode(String uniqueID) org.kie.api.definition.process.NodeContainergetNodeInstance(long nodeInstanceId) 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) protected ThrowablegetRootException(Throwable exception) intgetVariable(String name) protected booleanvoidinternalSetCancelTimerId(String cancelTimerId) voidinternalSetErrorMessage(String errorMessage) voidinternalSetErrorNodeId(String errorNodeId) voidinternalSetSlaCompliance(int slaCompliance) voidinternalSetSlaDueDate(Date slaDueDate) voidinternalSetSlaTimerId(String slaTimerId) booleanvoidnodeInstanceCompleted(NodeInstance nodeInstance, String outType) voidvoidremoveEventListener(String type, KogitoEventListener listener, boolean external) voidremoveNodeInstance(NodeInstance nodeInstance) resolveVariables(List<String> events) voidsetAgendaFilter(org.kie.api.runtime.rule.AgendaFilter agendaFilter) voidsetCorrelationKey(String correlationKey) voidsetCurrentLevel(int currentLevel) voidsetDeploymentId(String deploymentId) voidsetErrorState(NodeInstance nodeInstanceInError, Exception e) voidsetReferenceId(String referenceId) voidsetSignalCompletion(boolean signalCompletion) voidsetStartDate(Date startDate) voidsetState(int state) voidvoidvoidsetVariable(String name, Object value) voidsignalEvent(String type, Object event) voidstart()voidtoString()final ProcessInstance<?>unwrap()protected booleanfinal voidwrap(ProcessInstance<?> kogitoProcessInstance) Methods inherited from class org.jbpm.process.instance.impl.ProcessInstanceImpl
addContextInstance, getAgenda, getContextContainer, getContextInstance, getContextInstance, getContextInstance, getContextInstances, getDescription, getHeaders, getId, getKnowledgeRuntime, getMetaData, getOutcome, getParentProcessInstanceId, getProcess, getProcessId, getProcessName, getProcessVersion, getProcessXml, getRootProcessId, getRootProcessInstanceId, getState, getStringId, internalSetState, internalStart, removeContextInstance, setContextInstance, setDescription, setHeaders, setId, setInternalProcess, setKnowledgeRuntime, setMetaData, setOutcome, setParentProcessInstanceId, setProcess, setProcessId, setProcessVersion, setProcessXml, setRootProcessId, setRootProcessInstanceId, updateProcessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jbpm.process.instance.ContextableInstance
getContextInstanceMethods inherited from interface org.jbpm.process.instance.ContextInstanceContainer
addContextInstance, getContextContainer, getContextInstance, getContextInstance, getContextInstances, removeContextInstanceMethods inherited from interface org.kie.kogito.internal.process.runtime.KogitoNodeInstanceContainer
getKogitoNodeInstancesMethods inherited from interface org.kie.kogito.internal.process.runtime.KogitoProcessInstance
getDescription, getHeaders, getRootProcessId, getRootProcessInstanceId, getStringIdMethods inherited from interface org.jbpm.workflow.instance.NodeInstanceContainer
getByNodeDefinitionId, getNodeByPredicate, getState, resolveAsyncMethods inherited from interface org.jbpm.process.instance.ProcessInstance
getKnowledgeRuntime, getMetaData, getOutcome, getProcess, setId, setKnowledgeRuntime, setMetaData, setParentProcessInstanceId, setProcess, setRootProcessId, setRootProcessInstanceIdMethods inherited from interface org.kie.api.runtime.process.ProcessInstance
getId, getParentProcessInstanceId, getProcessId, getProcessName, getProcessVersion, getStateMethods inherited from interface org.jbpm.workflow.instance.WorkflowProcessInstance
setHeaders
-
Constructor Details
-
WorkflowProcessInstanceImpl
public WorkflowProcessInstanceImpl()
-
-
Method Details
-
getNodeContainer
public org.kie.api.definition.process.NodeContainer getNodeContainer()- Specified by:
getNodeContainerin interfaceNodeInstanceContainer
-
addNodeInstance
- Specified by:
addNodeInstancein interfaceNodeInstanceContainer
-
getLevelForNode
- Specified by:
getLevelForNodein interfaceNodeInstanceContainer
-
removeNodeInstance
- Specified by:
removeNodeInstancein interfaceNodeInstanceContainer
-
getNodeInstances
- Specified by:
getNodeInstancesin 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 interfaceorg.kie.api.runtime.process.NodeInstanceContainer
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceKogitoNodeInstanceContainer
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceNodeInstanceContainer
-
getActiveNodeIds
-
getFirstNodeInstance
public NodeInstance getFirstNodeInstance(org.kie.api.definition.process.WorkflowElementIdentifier nodeId) - Specified by:
getFirstNodeInstancein interfaceNodeInstanceContainer
-
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) -
getBusinessKey
- Specified by:
getBusinessKeyin interfaceKogitoProcessInstance
-
getNodeInstance
- Specified by:
getNodeInstancein interfaceNodeInstanceContainer
-
getWorkflowProcess
-
getVariable
- Specified by:
getVariablein interfaceorg.kie.api.runtime.process.WorkflowProcessInstance
-
getVariables
- Specified by:
getVariablesin interfaceKogitoProcessInstance
-
setVariable
- Specified by:
setVariablein interfaceorg.kie.api.runtime.process.WorkflowProcessInstance
-
setState
- Specified by:
setStatein interfaceProcessInstance
-
setState
- Specified by:
setStatein interfaceProcessInstance- Overrides:
setStatein classProcessInstanceImpl
-
setState
public void setState(int state) - Specified by:
setStatein interfaceNodeInstanceContainer- Specified by:
setStatein interfaceProcessInstance- Overrides:
setStatein classProcessInstanceImpl
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceProcessInstance- Overrides:
disconnectin classProcessInstanceImpl
-
reconnect
public void reconnect()- Specified by:
reconnectin interfaceProcessInstance- Overrides:
reconnectin classProcessInstanceImpl
-
toString
- Overrides:
toStringin classProcessInstanceImpl
-
start
public void start()- Specified by:
startin interfaceProcessInstance- Overrides:
startin classProcessInstanceImpl
-
start
- Specified by:
startin interfaceProcessInstance- Overrides:
startin classProcessInstanceImpl
-
configureTimers
public void configureTimers()- Specified by:
configureTimersin interfaceProcessInstance
-
configureSLATimer
-
signalEvent
- Specified by:
signalEventin interfaceorg.kie.api.runtime.process.EventListener- Specified by:
signalEventin interfaceKogitoEventListener- Overrides:
signalEventin classProcessInstanceImpl
-
resolveVariables
-
addEventListener
- Specified by:
addEventListenerin interfaceWorkflowProcessInstance
-
removeEventListener
- Specified by:
removeEventListenerin interfaceWorkflowProcessInstance
-
getEventTypes
- Specified by:
getEventTypesin interfaceorg.kie.api.runtime.process.EventListener- Specified by:
getEventTypesin interfaceKogitoEventListener- Overrides:
getEventTypesin classProcessInstanceImpl
-
getEventDescriptions
- Specified by:
getEventDescriptionsin interfaceKogitoEventListener
-
nodeInstanceCompleted
- Specified by:
nodeInstanceCompletedin interfaceNodeInstanceContainer
-
addCompletedNodeId
-
getCompletedNodeIds
-
getCurrentLevel
public int getCurrentLevel()- Specified by:
getCurrentLevelin interfaceNodeInstanceContainer
-
setCurrentLevel
public void setCurrentLevel(int currentLevel) - Specified by:
setCurrentLevelin interfaceNodeInstanceContainer
-
getIterationLevels
- Specified by:
getIterationLevelsin interfaceNodeInstanceContainer
-
addActivatingNodeId
-
getActivatingNodeIds
-
getFaultData
- Specified by:
getFaultDatain interfaceProcessInstance
-
isSignalCompletion
public boolean isSignalCompletion()- Specified by:
isSignalCompletionin interfaceProcessInstance
-
setSignalCompletion
public void setSignalCompletion(boolean signalCompletion) - Specified by:
setSignalCompletionin interfaceProcessInstance
-
getDeploymentId
- Specified by:
getDeploymentIdin interfaceProcessInstance
-
setDeploymentId
- Specified by:
setDeploymentIdin interfaceProcessInstance
-
getCorrelationKey
- Specified by:
getCorrelationKeyin interfaceKogitoWorkflowProcessInstance
-
setCorrelationKey
-
getStartDate
- Specified by:
getStartDatein interfaceKogitoWorkflowProcessInstance- Specified by:
getStartDatein interfaceProcessInstance
-
getEndDate
- Specified by:
getEndDatein interfaceKogitoWorkflowProcessInstance
-
setStartDate
- Specified by:
setStartDatein interfaceProcessInstance
-
hasDeploymentId
protected boolean hasDeploymentId() -
useTimerSLATracking
protected boolean useTimerSLATracking() -
getSlaCompliance
public int getSlaCompliance()- Specified by:
getSlaCompliancein interfaceProcessInstance
-
internalSetSlaCompliance
public void internalSetSlaCompliance(int slaCompliance) -
getSlaDueDate
- Specified by:
getSlaDueDatein interfaceKogitoWorkflowProcessInstance
-
internalSetSlaDueDate
-
getSlaTimerId
-
internalSetSlaTimerId
-
getCancelTimerId
-
internalSetCancelTimerId
-
getNodeIdInError
- Specified by:
getNodeIdInErrorin interfaceKogitoWorkflowProcessInstance
-
getNodeInstanceIdInError
- Specified by:
getNodeInstanceIdInErrorin interfaceKogitoWorkflowProcessInstance
-
getErrorMessage
- Specified by:
getErrorMessagein interfaceKogitoWorkflowProcessInstance
-
getErrorCause
- Specified by:
getErrorCausein interfaceKogitoWorkflowProcessInstance
-
setReferenceId
- Specified by:
setReferenceIdin interfaceProcessInstance
-
getReferenceId
- Specified by:
getReferenceIdin interfaceKogitoProcessInstance
-
setErrorState
- Specified by:
setErrorStatein interfaceProcessInstance
-
internalSetErrorNodeId
-
internalSetErrorMessage
-
adHocFragments
- Specified by:
adHocFragmentsin interfaceKogitoWorkflowProcessInstance
-
milestones
- Specified by:
milestonesin interfaceKogitoWorkflowProcessInstance
-
getRootException
-
getAgendaFilter
public org.kie.api.runtime.rule.AgendaFilter getAgendaFilter()- Specified by:
getAgendaFilterin interfaceProcessInstance
-
setAgendaFilter
public void setAgendaFilter(org.kie.api.runtime.rule.AgendaFilter agendaFilter) - Specified by:
setAgendaFilterin interfaceProcessInstance
-
wrap
- Specified by:
wrapin interfaceKogitoProcessInstance
-
unwrap
- Specified by:
unwrapin interfaceKogitoProcessInstance
-