public class CaseExecutionEntity extends CmmnExecution implements CaseExecution, CaseInstance, DbEntity, HasDbRevision, HasDbReferences, VariableStore.VariablesProvider<VariableInstanceEntity>
activity, caseDefinition, currentState, entryCriterionSatisfied, LOG, previousState, required, task, variableEventsQueue
businessKey, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, tenantId
cachedElContext
Constructor and Description |
---|
CaseExecutionEntity() |
addIdIfNotSatisfied, checkAndFireEntryCriteria, checkAndFireExitCriteria, close, collectAffectedSentries, collectAffectedSentriesWithVariableOnParts, collectAllSentries, collectCaseExecutionsInExecutionTree, collectSentryParts, complete, containsIfPartAndExecutionActive, create, createChildExecutions, createIfPart, createOnPart, createSentryPart, createSentryParts, createVariableOnPart, deleteCascade, disable, dispatchEvent, enable, exit, findCaseExecution, fireEntryCriteria, fireExitCriteria, fireIfOnlySentryParts, fireSentries, forceUpdateOnCaseSentryParts, forceUpdateOnSentries, getAffectedSentryParts, getCaseBusinessKey, getCurrentState, getParentVariableScope, getPrevious, getPreviousState, getSatisfiedSentries, getSatisfiedSentriesInExecutionTree, getState, getVariableEventQueue, getVariableScopeKey, handleChildTransition, handleVariableTransition, hasVariableWithSameNameInParent, invokeVariableListeners, isActive, isAvailable, isClosed, isCompleted, isDisabled, isEnabled, isEntryCriterionSatisfied, isFailed, isNew, isNotSatisfiedIfPartOnly, isRequired, isSentryPartsSatisfied, isSentrySatisfied, isSuspended, isSuspending, isTerminated, isTerminating, manualComplete, manualStart, occur, parentComplete, parentResume, parentSuspend, parentTerminate, performExit, performParentSuspension, performParentTerminate, performSuspension, performTerminate, queueVariableEvent, reactivate, reenable, resetSentries, resetSentryParts, resume, setCurrentState, setPrevious, setRequired, setState, setTask, start, suspend, terminate, triggerChildExecutionsLifecycle
getBusinessKey, getEventName, getEventSource, getId, getListenerIndex, getTenantId, invokeListener, isSkipCustomListeners, isSkipIoMappings, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setTenantId
collectVariableNames, collectVariables, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocalTransient, setVariables, setVariablesLocal
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBusinessKey, isCompleted
getId, getTenantId, isActive, isAvailable, isDisabled, isEnabled, isRequired, isTerminated
getEventName, getId, getTenantId
getBusinessKey
getVariable, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setVariable, setVariableLocal, setVariables, setVariablesLocal
protected transient CaseExecutionEntity caseInstance
protected transient CaseExecutionEntity parent
protected List<CaseExecutionEntity> caseExecutions
protected List<CaseSentryPartEntity> caseSentryParts
protected Map<String,List<CmmnSentryPart>> sentries
protected transient ExecutionEntity subProcessInstance
protected transient ExecutionEntity superExecution
protected transient CaseExecutionEntity subCaseInstance
protected transient CaseExecutionEntity superCaseExecution
protected VariableStore<VariableInstanceEntity> variableStore
protected int revision
protected String caseDefinitionId
protected String activityId
protected String caseInstanceId
protected String parentId
protected String superCaseExecutionId
protected String superExecutionId
protected String activityName
protected String activityType
protected String activityDescription
public String getCaseDefinitionId()
CaseExecution
The id of the case definition of the case execution.
getCaseDefinitionId
in interface DelegateCaseExecution
getCaseDefinitionId
in interface CaseExecution
public CmmnCaseDefinition getCaseDefinition()
getCaseDefinition
in class CmmnExecution
public void setCaseDefinition(CmmnCaseDefinition caseDefinition)
setCaseDefinition
in class CmmnExecution
protected void ensureCaseDefinitionInitialized()
public CaseExecutionEntity getParent()
CmmnExecution
getParent
in interface CmmnActivityExecution
getParent
in class CmmnExecution
parent
or null.public void setParent(CmmnExecution parent)
setParent
in class CmmnExecution
protected void ensureParentInitialized()
protected void ensureCaseExecutionTreeInitialized()
protected boolean isExecutionTreePrefetchEnabled()
public String getParentId()
CaseExecution
The id of the parent of this
case execution.
getParentId
in interface DelegateCaseExecution
getParentId
in interface CaseExecution
public CmmnActivity getActivity()
CmmnExecution
getActivity
in interface CmmnActivityExecution
getActivity
in class CmmnExecution
activity
public void setActivity(CmmnActivity activity)
setActivity
in class CmmnExecution
protected void ensureActivityInitialized()
protected String getActivityProperty(CmmnActivity activity, String property)
public String getActivityId()
CaseExecution
The id of the activity associated with this
case execution.
getActivityId
in interface DelegateCaseExecution
getActivityId
in interface CaseExecution
public String getActivityName()
CaseExecution
The name of the activity associated with this
case execution.
getActivityName
in interface DelegateCaseExecution
getActivityName
in interface CaseExecution
public String getActivityType()
CaseExecution
The type of the activity associated with this
case execution.
getActivityType
in interface CaseExecution
public String getActivityDescription()
CaseExecution
The description of the activity associated with this
case execution.
getActivityDescription
in interface CaseExecution
public List<CaseExecutionEntity> getCaseExecutions()
CmmnActivityExecution
Returns a List
of child case executions. If this
case
execution has no child case executions an empty List
will be returned.
getCaseExecutions
in interface CmmnActivityExecution
getCaseExecutions
in class CmmnExecution
List
of child case executions.protected List<CaseExecutionEntity> getCaseExecutionsInternal()
getCaseExecutionsInternal
in class CmmnExecution
protected void ensureCaseExecutionsInitialized()
public TaskEntity getTask()
getTask
in class CmmnExecution
protected void ensureTaskInitialized()
public TaskEntity createTask(TaskDecorator taskDecorator)
CmmnActivityExecution
Creates a new task.
This
createTask
in interface CmmnActivityExecution
createTask
in class CmmnExecution
taskDecorator
- the task decorator used to create taskpublic String getCaseInstanceId()
CmmnExecution
getCaseInstanceId
in interface DelegateCaseExecution
getCaseInstanceId
in interface CaseExecution
getCaseInstanceId
in class CmmnExecution
public CaseExecutionEntity getCaseInstance()
CmmnExecution
getCaseInstance
in class CmmnExecution
public void setCaseInstance(CmmnExecution caseInstance)
setCaseInstance
in class CmmnExecution
protected void ensureCaseInstanceInitialized()
public boolean isCaseInstanceExecution()
CmmnActivityExecution
Returns true
if this
case execution
is a case instance. If this
case execution is not a
case instance then false
will be returned.
isCaseInstanceExecution
in interface CmmnActivityExecution
isCaseInstanceExecution
in class CmmnExecution
this
case execution is a case instance or not.public void create(Map<String,Object> variables)
CmmnCaseInstance
This
case instance transitions to ACTIVE
state.
The given variables
will be set a case instance variables.
create
in interface CmmnCaseInstance
create
in class CmmnExecution
protected CaseExecutionEntity createCaseExecution(CmmnActivity activity)
createCaseExecution
in class CmmnExecution
protected CaseExecutionEntity newCaseExecution()
newCaseExecution
in class CmmnExecution
public String getSuperExecutionId()
public void setSuperExecutionId(String superProcessExecutionId)
public ExecutionEntity getSuperExecution()
getSuperExecution
in class CmmnExecution
public void setSuperExecution(PvmExecutionImpl superExecution)
setSuperExecution
in class CmmnExecution
protected void ensureSuperExecutionInstanceInitialized()
public ExecutionEntity getSubProcessInstance()
getSubProcessInstance
in class CmmnExecution
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance
in class CmmnExecution
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition)
CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance
in interface CmmnActivityExecution
createSubProcessInstance
in class CmmnExecution
processDefinition
- The PvmProcessDefinition
of the subprocess.public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance
in interface CmmnActivityExecution
createSubProcessInstance
in class CmmnExecution
processDefinition
- The PvmProcessDefinition
of the subprocess.businessKey
- The businessKey to be set on sub process instance.public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance
in interface CmmnActivityExecution
createSubProcessInstance
in class CmmnExecution
processDefinition
- The PvmProcessDefinition
of the subprocess.businessKey
- The businessKey to be set on sub process instance.caseInstanceId
- The caseInstanceId to be set on sub process instance.protected void ensureSubProcessInstanceInitialized()
public CaseExecutionEntity getSubCaseInstance()
getSubCaseInstance
in class CmmnExecution
public void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance
in class CmmnExecution
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the
created sub case instance.
createSubCaseInstance
in interface CmmnActivityExecution
createSubCaseInstance
in class CmmnExecution
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the
created sub case instance.
createSubCaseInstance
in interface CmmnActivityExecution
createSubCaseInstance
in class CmmnExecution
caseDefinition
- The CmmnCaseDefinition
of the sub case instance.businessKey
- The businessKey to be set on sub case instance.public void fireHistoricCaseActivityInstanceUpdate()
protected void ensureSubCaseInstanceInitialized()
public String getSuperCaseExecutionId()
public void setSuperCaseExecutionId(String superCaseExecutionId)
public CmmnExecution getSuperCaseExecution()
getSuperCaseExecution
in class CmmnExecution
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
setSuperCaseExecution
in class CmmnExecution
protected void ensureSuperCaseExecutionInitialized()
public List<CaseSentryPartEntity> getCaseSentryParts()
getCaseSentryParts
in class CmmnExecution
protected void ensureCaseSentryPartsInitialized()
protected void addSentryPart(CmmnSentryPart sentryPart)
addSentryPart
in class CmmnExecution
protected Map<String,List<CmmnSentryPart>> getSentries()
getSentries
in class CmmnExecution
protected List<CmmnSentryPart> findSentry(String sentryId)
findSentry
in class CmmnExecution
protected CaseSentryPartEntity newSentryPart()
newSentryPart
in class CmmnExecution
protected VariableStore<CoreVariableInstance> getVariableStore()
getVariableStore
in class AbstractVariableScope
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
getVariableInstanceFactory
in class AbstractVariableScope
protected List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
getVariableInstanceLifecycleListeners
in class AbstractVariableScope
public Collection<VariableInstanceEntity> provideVariables()
provideVariables
in interface VariableStore.VariablesProvider<VariableInstanceEntity>
public String toString()
toString
in class CmmnExecution
protected String getToStringIdentity()
getToStringIdentity
in class CmmnExecution
public void remove()
CmmnActivityExecution
Removes this
case execution from the parent case execution.
remove
in interface CmmnActivityExecution
remove
in class CmmnExecution
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public void forceUpdate()
public Set<String> getReferencedEntityIds()
getReferencedEntityIds
in interface HasDbReferences
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public CmmnModelInstance getCmmnModelInstance()
CmmnModelExecutionContext
CmmnModelInstance
for the currently executed Cmmn ModelgetCmmnModelInstance
in interface CmmnModelExecutionContext
CmmnModelInstance
public CmmnElement getCmmnModelElementInstance()
CmmnModelExecutionContext
Returns the currently executed Element in the Cmmn Model. This method returns a CmmnElement
which may be casted
to the concrete type of the Cmmn Model Element currently executed.
getCmmnModelElementInstance
in interface CmmnModelExecutionContext
CmmnElement
corresponding to the current Cmmn Model Elementpublic ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAware
ProcessEngineServices
providing access to the
public API of the process engine.getProcessEngineServices
in interface ProcessEngineServicesAware
ProcessEngineServices
.public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
performOperation
in class CoreExecution
public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
performOperationSync
in class CoreExecution
Copyright © 2017. All rights reserved.