public class CaseExecutionEntity extends CmmnExecution implements CaseExecution, CaseInstance, DbEntity, HasDbRevision, HasDbReferences
| Modifier and Type | Field and Description |
|---|---|
protected String |
activityDescription |
protected String |
activityId |
protected String |
activityName |
protected String |
activityType |
protected String |
caseDefinitionId |
protected List<CaseExecutionEntity> |
caseExecutions
nested executions
|
protected CaseExecutionEntity |
caseInstance
the case instance.
|
protected String |
caseInstanceId |
protected List<CaseSentryPartEntity> |
caseSentryParts
nested case sentry parts
|
protected CaseExecutionEntity |
parent
the parent execution
|
protected String |
parentId |
protected int |
revision |
protected Map<String,List<CmmnSentryPart>> |
sentries |
protected CaseExecutionEntity |
subCaseInstance |
protected ExecutionEntity |
subProcessInstance
reference to a sub process instance, not-null if currently subprocess is started from this execution
|
protected CaseExecutionEntity |
superCaseExecution |
protected String |
superCaseExecutionId |
protected CaseExecutionEntityVariableStore |
variableStore |
activity, caseDefinition, currentState, nextActivity, previousState, required, satisfiedSentries, task, variableEventsQueuebusinessKey, eventName, eventSource, id, listenerIndex, skipCustomListenerscachedElContext| Constructor and Description |
|---|
CaseExecutionEntity() |
checkAndFireEntryCriteria, checkAndFireExitCriteria, close, collectAffectedSentries, complete, containsIfPart, create, create, createChildExecutions, createIfPart, createOnPart, createSentryPart, createSentryParts, deleteCascade, disable, dispatchEvent, enable, exit, findCaseExecution, fireEntryCriteria, fireExitCriteria, fireSentries, forceUpdateOnCaseSentryPart, getCaseBusinessKey, getCurrentState, getNextActivity, getParentVariableScope, getPrevious, getPreviousState, getSatisfiedSentries, getState, getVariableEventQueue, getVariableScopeKey, handleChildTransition, invokeVariableListeners, isActive, isAvailable, isClosed, isCompleted, isDisabled, isEnabled, isFailed, isNew, isRequired, isSentrySatisfied, isSuspended, isSuspending, isTerminated, isTerminating, manualComplete, manualStart, occur, parentResume, parentSuspend, parentTerminate, performExit, performParentSuspension, performParentTerminate, performSuspension, performTerminate, queueVariableEvent, reactivate, reenable, resume, setCurrentState, setNextActivity, setPrevious, setRequired, setState, setTask, start, suspend, terminate, triggerChildExecutionsLifecyclegetBusinessKey, getEventName, getEventSource, getId, getListenerIndex, invokeListener, isSkipCustomListeners, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListenerscollectVariableNames, 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, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocalclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBusinessKey, isCompletedgetId, isActive, isAvailable, isDisabled, isEnabled, isTerminatedgetEventName, getIdgetBusinessKeygetVariable, 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, setVariablesLocalprotected 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 CaseExecutionEntity subCaseInstance
protected transient CaseExecutionEntity superCaseExecution
protected CaseExecutionEntityVariableStore variableStore
protected int revision
protected String caseDefinitionId
protected String activityId
protected String caseInstanceId
protected String parentId
protected String superCaseExecutionId
protected String activityName
protected String activityType
protected String activityDescription
public String getCaseDefinitionId()
CaseExecutionThe id of the case definition of the case execution.
getCaseDefinitionId in interface DelegateCaseExecutiongetCaseDefinitionId in interface CaseExecutionpublic CmmnCaseDefinition getCaseDefinition()
getCaseDefinition in class CmmnExecutionpublic void setCaseDefinition(CmmnCaseDefinition caseDefinition)
setCaseDefinition in class CmmnExecutionprotected void ensureCaseDefinitionInitialized()
public CaseExecutionEntity getParent()
CmmnExecutiongetParent in interface CmmnActivityExecutiongetParent in class CmmnExecutionparent or null.public void setParent(CmmnExecution parent)
setParent in class CmmnExecutionprotected void ensureParentInitialized()
protected void ensureCaseExecutionTreeInitialized()
protected boolean isExecutionTreePrefetchEnabled()
public String getParentId()
CaseExecutionThe id of the parent of this case execution.
getParentId in interface DelegateCaseExecutiongetParentId in interface CaseExecutionpublic CmmnActivity getActivity()
CmmnExecutiongetActivity in interface CmmnActivityExecutiongetActivity in class CmmnExecutionactivitypublic void setActivity(CmmnActivity activity)
setActivity in class CmmnExecutionprotected void ensureActivityInitialized()
protected String getActivityProperty(CmmnActivity activity, String property)
public String getActivityId()
CaseExecutionThe id of the activity associated with this case execution.
getActivityId in interface DelegateCaseExecutiongetActivityId in interface CaseExecutionpublic String getActivityName()
CaseExecutionThe name of the activity associated with this case execution.
getActivityName in interface DelegateCaseExecutiongetActivityName in interface CaseExecutionpublic String getActivityType()
CaseExecutionThe type of the activity associated with this case execution.
getActivityType in interface CaseExecutionpublic String getActivityDescription()
CaseExecutionThe description of the activity associated with this case execution.
getActivityDescription in interface CaseExecutionpublic List<CaseExecutionEntity> getCaseExecutions()
CmmnActivityExecutionReturns a List of child case executions. If this case
execution has no child case executions an empty List will be returned.
getCaseExecutions in interface CmmnActivityExecutiongetCaseExecutions in class CmmnExecutionList of child case executions.protected List<CaseExecutionEntity> getCaseExecutionsInternal()
getCaseExecutionsInternal in class CmmnExecutionprotected void ensureCaseExecutionsInitialized()
public TaskEntity getTask()
getTask in class CmmnExecutionprotected void ensureTaskInitialized()
public TaskEntity createTask(TaskDecorator taskDecorator)
CmmnActivityExecutionCreates a new task.
This
createTask in interface CmmnActivityExecutioncreateTask in class CmmnExecutiontaskDecorator - the task decorator used to create taskpublic String getCaseInstanceId()
CmmnExecutiongetCaseInstanceId in interface DelegateCaseExecutiongetCaseInstanceId in interface CaseExecutiongetCaseInstanceId in class CmmnExecutionpublic CaseExecutionEntity getCaseInstance()
CmmnExecutiongetCaseInstance in class CmmnExecutionpublic void setCaseInstance(CmmnExecution caseInstance)
setCaseInstance in class CmmnExecutionprotected void ensureCaseInstanceInitialized()
public boolean isCaseInstanceExecution()
CmmnActivityExecutionReturns 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 CmmnActivityExecutionisCaseInstanceExecution in class CmmnExecutionthis case execution is a case instance or not.protected CaseExecutionEntity createCaseExecution(CmmnActivity activity)
createCaseExecution in class CmmnExecutionprotected CaseExecutionEntity newCaseExecution()
newCaseExecution in class CmmnExecutionpublic ExecutionEntity getSubProcessInstance()
getSubProcessInstance in class CmmnExecutionpublic void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
setSubProcessInstance in class CmmnExecutionpublic ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition)
CmmnActivityExecutionCreates a new sub process instance.
This case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance in interface CmmnActivityExecutioncreateSubProcessInstance in class CmmnExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey)
CmmnActivityExecutionCreates a new sub process instance.
This case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance in interface CmmnActivityExecutioncreateSubProcessInstance in class CmmnExecutionprocessDefinition - The PvmProcessDefinition of the subprocess.businessKey - The businessKey to be set on sub process instance.public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, String businessKey, String caseInstanceId)
CmmnActivityExecutionCreates a new sub process instance.
This case execution will be the super case execution of the
created sub process instance.
createSubProcessInstance in interface CmmnActivityExecutioncreateSubProcessInstance in class CmmnExecutionprocessDefinition - 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 CmmnExecutionpublic void setSubCaseInstance(CmmnExecution subCaseInstance)
setSubCaseInstance in class CmmnExecutionpublic CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
CmmnActivityExecutionCreates a new sub case instance.
This case execution will be the super case execution of the
created sub case instance.
createSubCaseInstance in interface CmmnActivityExecutioncreateSubCaseInstance in class CmmnExecutioncaseDefinition - The CmmnCaseDefinition of the subprocess.public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, String businessKey)
CmmnActivityExecutionCreates a new sub case instance.
This case execution will be the super case execution of the
created sub case instance.
createSubCaseInstance in interface CmmnActivityExecutioncreateSubCaseInstance in class CmmnExecutioncaseDefinition - The CmmnCaseDefinition of the subprocess.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 CmmnExecutionpublic void setSuperCaseExecution(CmmnExecution superCaseExecution)
setSuperCaseExecution in class CmmnExecutionprotected void ensureSuperCaseExecutionInitialized()
public List<CaseSentryPartEntity> getCaseSentryParts()
getCaseSentryParts in class CmmnExecutionprotected void ensureCaseSentryPartsInitialized()
protected void addSentryPart(CmmnSentryPart sentryPart)
addSentryPart in class CmmnExecutionprotected Map<String,List<CmmnSentryPart>> getSentries()
getSentries in class CmmnExecutionprotected List<CmmnSentryPart> findSentry(String sentryId)
findSentry in class CmmnExecutionprotected CaseSentryPartEntity newSentryPart()
newSentryPart in class CmmnExecutionprotected CoreVariableStore getVariableStore()
getVariableStore in class AbstractVariableScopeprotected void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
protected List<VariableInstanceEntity> loadVariableInstances()
public String toString()
toString in class CmmnExecutionprotected String getToStringIdentity()
getToStringIdentity in class CmmnExecutionpublic void remove()
CmmnActivityExecutionRemoves this case execution from the parent case execution.
remove in interface CmmnActivityExecutionremove in class CmmnExecutionpublic int getRevision()
getRevision in interface HasDbRevisionpublic void setRevision(int revision)
setRevision in interface HasDbRevisionpublic int getRevisionNext()
getRevisionNext in interface HasDbRevisionpublic void forceUpdate()
public boolean hasReferenceTo(DbEntity entity)
hasReferenceTo in interface HasDbReferencespublic Object getPersistentState()
DbEntitygetPersistentState in interface DbEntitypublic CmmnModelInstance getCmmnModelInstance()
CmmnModelExecutionContextCmmnModelInstance for the currently executed Cmmn ModelgetCmmnModelInstance in interface CmmnModelExecutionContextCmmnModelInstancepublic CmmnElement getCmmnModelElementInstance()
CmmnModelExecutionContextReturns 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 CmmnModelExecutionContextCmmnElement corresponding to the current Cmmn Model Elementpublic ProcessEngineServices getProcessEngineServices()
ProcessEngineServicesAwareProcessEngineServices providing access to the
public API of the process engine.getProcessEngineServices in interface ProcessEngineServicesAwareProcessEngineServices.public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
performOperation in class CoreExecutionpublic <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
performOperationSync in class CoreExecutionCopyright © 2018. All rights reserved.