Class CaseExecutionEntity
- java.lang.Object
-
- org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
-
- org.camunda.bpm.engine.impl.core.instance.CoreExecution
-
- org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
-
- org.camunda.bpm.engine.impl.cmmn.entity.runtime.CaseExecutionEntity
-
- All Implemented Interfaces:
java.io.Serializable,BaseDelegateExecution,CmmnModelExecutionContext,DelegateCaseExecution,ProcessEngineServicesAware,VariableScope,CmmnActivityExecution,CmmnCaseInstance,VariableEventDispatcher,VariableStore.VariablesProvider<VariableInstanceEntity>,DbEntity,HasDbReferences,HasDbRevision,CaseExecution,CaseInstance
public class CaseExecutionEntity extends CmmnExecution implements CaseExecution, CaseInstance, DbEntity, HasDbRevision, HasDbReferences, VariableStore.VariablesProvider<VariableInstanceEntity>
- Author:
- Roman Smirnov
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringactivityDescriptionprotected java.lang.StringactivityIdprotected java.lang.StringactivityNameprotected java.lang.StringactivityTypeprotected java.lang.StringcaseDefinitionIdprotected java.util.List<CaseExecutionEntity>caseExecutionsnested executionsprotected CaseExecutionEntitycaseInstancethe case instance.protected java.lang.StringcaseInstanceIdprotected java.util.List<CaseSentryPartEntity>caseSentryPartsnested case sentry partsprotected CaseExecutionEntityparentthe parent executionprotected java.lang.StringparentIdprotected intrevisionprotected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>>sentriesprotected CaseExecutionEntitysubCaseInstanceprotected ExecutionEntitysubProcessInstancereference to a sub process instance, not-null if currently subprocess is started from this executionprotected CaseExecutionEntitysuperCaseExecutionprotected java.lang.StringsuperCaseExecutionIdprotected ExecutionEntitysuperExecutionprotected java.lang.StringsuperExecutionIdprotected VariableStore<VariableInstanceEntity>variableStore-
Fields inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
activity, caseDefinition, currentState, entryCriterionSatisfied, LOG, previousState, required, task, variableEventsQueue
-
Fields inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
businessKey, businessKeyWithoutCascade, eventName, eventSource, id, listenerIndex, skipCustomListeners, skipIoMapping, skipSubprocesses, tenantId
-
Fields inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
cachedElContext
-
-
Constructor Summary
Constructors Constructor Description CaseExecutionEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddSentryPart(CmmnSentryPart sentryPart)voidcreate(java.util.Map<java.lang.String,java.lang.Object> variables)Thiscase instance transitions toACTIVEstate.protected CaseExecutionEntitycreateCaseExecution(CmmnActivity activity)CaseExecutionEntitycreateSubCaseInstance(CmmnCaseDefinition caseDefinition)Creates a new sub case instance.CaseExecutionEntitycreateSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)Creates a new sub case instance.ExecutionEntitycreateSubProcessInstance(PvmProcessDefinition processDefinition)Creates a new sub process instance.ExecutionEntitycreateSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey)Creates a new sub process instance.ExecutionEntitycreateSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey, java.lang.String caseInstanceId)Creates a new sub process instance.TaskEntitycreateTask(TaskDecorator taskDecorator)Creates a new task.protected voidensureActivityInitialized()protected voidensureCaseDefinitionInitialized()protected voidensureCaseExecutionsInitialized()protected voidensureCaseExecutionTreeInitialized()protected voidensureCaseInstanceInitialized()protected voidensureCaseSentryPartsInitialized()protected voidensureParentInitialized()protected voidensureSubCaseInstanceInitialized()protected voidensureSubProcessInstanceInitialized()protected voidensureSuperCaseExecutionInitialized()protected voidensureSuperExecutionInstanceInitialized()protected voidensureTaskInitialized()protected java.util.List<CmmnSentryPart>findSentry(java.lang.String sentryId)voidfireHistoricCaseActivityInstanceUpdate()voidforceUpdate()CmmnActivitygetActivity()ensures initialization and returns the activityjava.lang.StringgetActivityDescription()The description of the activity associated withthiscase execution.java.lang.StringgetActivityId()The id of the activity associated withthiscase execution.java.lang.StringgetActivityName()The name of the activity associated withthiscase execution.protected java.lang.StringgetActivityProperty(CmmnActivity activity, java.lang.String property)java.lang.StringgetActivityType()The type of the activity associated withthiscase execution.CmmnCaseDefinitiongetCaseDefinition()ensures initialization and returns the case definition.java.lang.StringgetCaseDefinitionId()The id of the case definition of the case execution.java.lang.StringgetCaseDefinitionTenantId()java.util.List<CaseExecutionEntity>getCaseExecutions()Returns aListof child case executions.protected java.util.List<CaseExecutionEntity>getCaseExecutionsInternal()CaseExecutionEntitygetCaseInstance()ensures initialization and returns the process instance.java.lang.StringgetCaseInstanceId()ensures initialization and returns the process instance.java.util.List<CaseSentryPartEntity>getCaseSentryParts()CmmnElementgetCmmnModelElementInstance()Returns the currently executed Element in the Cmmn Model.CmmnModelInstancegetCmmnModelInstance()Returns theCmmnModelInstancefor the currently executed Cmmn ModelCaseExecutionEntitygetParent()ensures initialization and returns the parentjava.lang.StringgetParentId()The id of the parent ofthiscase execution.java.lang.ObjectgetPersistentState()Returns a representation of the object, as would be stored in the database.ProcessEnginegetProcessEngine()Returns theProcessEngineproviding access to the public API of the process engine.ProcessEngineServicesgetProcessEngineServices()Returns theProcessEngineServicesproviding access to the public API of the process engine.java.util.Map<java.lang.String,java.lang.Class>getReferencedEntitiesIdAndClass()Scope: IN-MEMORY referencesjava.util.Set<java.lang.String>getReferencedEntityIds()Scope: IN-MEMORY referencesintgetRevision()intgetRevisionNext()protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>>getSentries()CaseExecutionEntitygetSubCaseInstance()ExecutionEntitygetSubProcessInstance()CmmnExecutiongetSuperCaseExecution()java.lang.StringgetSuperCaseExecutionId()ExecutionEntitygetSuperExecution()java.lang.StringgetSuperExecutionId()TaskEntitygetTask()protected java.lang.StringgetToStringIdentity()protected VariableInstanceFactory<CoreVariableInstance>getVariableInstanceFactory()protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>>getVariableInstanceLifecycleListeners()protected VariableStore<CoreVariableInstance>getVariableStore()booleanisCaseInstanceExecution()Returnstrueifthiscase execution is a case instance.protected booleanisExecutionTreePrefetchEnabled()protected CaseExecutionEntitynewCaseExecution()protected CaseSentryPartEntitynewSentryPart()<T extends CoreExecution>
voidperformOperation(CoreAtomicOperation<T> operation)<T extends CoreExecution>
voidperformOperationSync(CoreAtomicOperation<T> operation)protected voidprovideTenantId(java.util.Map<java.lang.String,java.lang.Object> variables)java.util.Collection<VariableInstanceEntity>provideVariables()java.util.Collection<VariableInstanceEntity>provideVariables(java.util.Collection<java.lang.String> variableNames)voidremove()Removesthiscase execution from the parent case execution.voidsetActivity(CmmnActivity activity)voidsetCaseDefinition(CmmnCaseDefinition caseDefinition)voidsetCaseInstance(CmmnExecution caseInstance)voidsetParent(CmmnExecution parent)voidsetRevision(int revision)voidsetSubCaseInstance(CmmnExecution subCaseInstance)voidsetSubProcessInstance(PvmExecutionImpl subProcessInstance)voidsetSuperCaseExecution(CmmnExecution superCaseExecution)voidsetSuperCaseExecutionId(java.lang.String superCaseExecutionId)voidsetSuperExecution(PvmExecutionImpl superExecution)voidsetSuperExecutionId(java.lang.String superProcessExecutionId)java.lang.StringtoString()-
Methods inherited from class org.camunda.bpm.engine.impl.cmmn.execution.CmmnExecution
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, getBusinessKey, 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
-
Methods inherited from class org.camunda.bpm.engine.impl.core.instance.CoreExecution
getBusinessKeyWithoutCascade, getEventName, getEventSource, getId, getListenerIndex, getTenantId, hasFailedOnEndListeners, invokeListener, isSkipCustomListeners, isSkipIoMappings, isSkipSubprocesses, setBusinessKey, setEventName, setEventSource, setId, setListenerIndex, setSkipCustomListeners, setSkipIoMappings, setSkipSubprocesseses, setTenantId
-
Methods inherited from class org.camunda.bpm.engine.impl.core.variable.scope.AbstractVariableScope
collectVariableNames, collectVariables, getCachedElContext, getSourceActivityVariableScope, getValueFromVariableInstance, getVariable, getVariable, getVariableInstance, getVariableInstanceLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocalTyped, getVariableLocalTyped, getVariableNames, getVariableNamesLocal, getVariables, getVariablesLocal, getVariablesLocalTyped, getVariablesLocalTyped, getVariablesTyped, getVariablesTyped, getVariableTyped, getVariableTyped, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, initializeVariableStore, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersCreate, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersDelete, invokeVariableLifecycleListenersUpdate, invokeVariableLifecycleListenersUpdate, removeVariable, removeVariable, removeVariableLocal, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setVariable, setVariable, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariableLocal, setVariables, setVariables, setVariablesLocal, setVariablesLocal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.runtime.CaseExecution
getId, getTenantId, isActive, isAvailable, isDisabled, isEnabled, isRequired, isTerminated
-
Methods inherited from interface org.camunda.bpm.engine.runtime.CaseInstance
getBusinessKey, isCompleted
-
Methods inherited from interface org.camunda.bpm.engine.delegate.DelegateCaseExecution
getEventName, getId, getTenantId
-
Methods inherited from interface org.camunda.bpm.engine.impl.db.HasDbReferences
getDependentEntities
-
Methods inherited from interface org.camunda.bpm.engine.delegate.VariableScope
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
-
-
-
-
Field Detail
-
caseInstance
protected transient CaseExecutionEntity caseInstance
the case instance. this is the root of the execution tree. the caseInstance of a case instance is a self reference.
-
parent
protected transient CaseExecutionEntity parent
the parent execution
-
caseExecutions
protected java.util.List<CaseExecutionEntity> caseExecutions
nested executions
-
caseSentryParts
protected java.util.List<CaseSentryPartEntity> caseSentryParts
nested case sentry parts
-
sentries
protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>> sentries
-
subProcessInstance
protected transient ExecutionEntity subProcessInstance
reference to a sub process instance, not-null if currently subprocess is started from this execution
-
superExecution
protected transient ExecutionEntity superExecution
-
subCaseInstance
protected transient CaseExecutionEntity subCaseInstance
-
superCaseExecution
protected transient CaseExecutionEntity superCaseExecution
-
variableStore
protected VariableStore<VariableInstanceEntity> variableStore
-
revision
protected int revision
-
caseDefinitionId
protected java.lang.String caseDefinitionId
-
activityId
protected java.lang.String activityId
-
caseInstanceId
protected java.lang.String caseInstanceId
-
parentId
protected java.lang.String parentId
-
superCaseExecutionId
protected java.lang.String superCaseExecutionId
-
superExecutionId
protected java.lang.String superExecutionId
-
activityName
protected java.lang.String activityName
-
activityType
protected java.lang.String activityType
-
activityDescription
protected java.lang.String activityDescription
-
-
Method Detail
-
getCaseDefinitionId
public java.lang.String getCaseDefinitionId()
Description copied from interface:CaseExecutionThe id of the case definition of the case execution.
- Specified by:
getCaseDefinitionIdin interfaceCaseExecution- Specified by:
getCaseDefinitionIdin interfaceDelegateCaseExecution
-
getCaseDefinition
public CmmnCaseDefinition getCaseDefinition()
ensures initialization and returns the case definition.- Overrides:
getCaseDefinitionin classCmmnExecution
-
setCaseDefinition
public void setCaseDefinition(CmmnCaseDefinition caseDefinition)
- Overrides:
setCaseDefinitionin classCmmnExecution
-
ensureCaseDefinitionInitialized
protected void ensureCaseDefinitionInitialized()
-
getParent
public CaseExecutionEntity getParent()
Description copied from class:CmmnExecutionensures initialization and returns the parent- Specified by:
getParentin interfaceCmmnActivityExecution- Specified by:
getParentin classCmmnExecution- Returns:
- a
parentor null.
-
setParent
public void setParent(CmmnExecution parent)
- Specified by:
setParentin classCmmnExecution
-
ensureParentInitialized
protected void ensureParentInitialized()
-
ensureCaseExecutionTreeInitialized
protected void ensureCaseExecutionTreeInitialized()
-
isExecutionTreePrefetchEnabled
protected boolean isExecutionTreePrefetchEnabled()
- Returns:
- true if execution tree prefetching is enabled
-
getParentId
public java.lang.String getParentId()
Description copied from interface:CaseExecutionThe id of the parent of
thiscase execution.- Specified by:
getParentIdin interfaceCaseExecution- Specified by:
getParentIdin interfaceDelegateCaseExecution
-
getActivity
public CmmnActivity getActivity()
Description copied from class:CmmnExecutionensures initialization and returns the activity- Specified by:
getActivityin interfaceCmmnActivityExecution- Overrides:
getActivityin classCmmnExecution- Returns:
- the associated
activity
-
setActivity
public void setActivity(CmmnActivity activity)
- Overrides:
setActivityin classCmmnExecution
-
ensureActivityInitialized
protected void ensureActivityInitialized()
-
getActivityProperty
protected java.lang.String getActivityProperty(CmmnActivity activity, java.lang.String property)
-
getActivityId
public java.lang.String getActivityId()
Description copied from interface:CaseExecutionThe id of the activity associated with
thiscase execution.- Specified by:
getActivityIdin interfaceCaseExecution- Specified by:
getActivityIdin interfaceDelegateCaseExecution
-
getActivityName
public java.lang.String getActivityName()
Description copied from interface:CaseExecutionThe name of the activity associated with
thiscase execution.- Specified by:
getActivityNamein interfaceCaseExecution- Specified by:
getActivityNamein interfaceDelegateCaseExecution
-
getActivityType
public java.lang.String getActivityType()
Description copied from interface:CaseExecutionThe type of the activity associated with
thiscase execution.- Specified by:
getActivityTypein interfaceCaseExecution
-
getActivityDescription
public java.lang.String getActivityDescription()
Description copied from interface:CaseExecutionThe description of the activity associated with
thiscase execution.- Specified by:
getActivityDescriptionin interfaceCaseExecution
-
getCaseExecutions
public java.util.List<CaseExecutionEntity> getCaseExecutions()
Description copied from interface:CmmnActivityExecutionReturns a
Listof child case executions. Ifthiscase execution has no child case executions an emptyListwill be returned.- Specified by:
getCaseExecutionsin interfaceCmmnActivityExecution- Specified by:
getCaseExecutionsin classCmmnExecution- Returns:
- a
Listof child case executions.
-
getCaseExecutionsInternal
protected java.util.List<CaseExecutionEntity> getCaseExecutionsInternal()
- Specified by:
getCaseExecutionsInternalin classCmmnExecution
-
ensureCaseExecutionsInitialized
protected void ensureCaseExecutionsInitialized()
-
getTask
public TaskEntity getTask()
- Overrides:
getTaskin classCmmnExecution
-
ensureTaskInitialized
protected void ensureTaskInitialized()
-
createTask
public TaskEntity createTask(TaskDecorator taskDecorator)
Description copied from interface:CmmnActivityExecutionCreates a new task.
case execution will be the case execution of the created task.This- Specified by:
createTaskin interfaceCmmnActivityExecution- Overrides:
createTaskin classCmmnExecution- Parameters:
taskDecorator- the task decorator used to create task
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Description copied from class:CmmnExecutionensures initialization and returns the process instance.- Specified by:
getCaseInstanceIdin interfaceCaseExecution- Specified by:
getCaseInstanceIdin interfaceDelegateCaseExecution- Overrides:
getCaseInstanceIdin classCmmnExecution
-
getCaseInstance
public CaseExecutionEntity getCaseInstance()
Description copied from class:CmmnExecutionensures initialization and returns the process instance.- Specified by:
getCaseInstancein classCmmnExecution
-
setCaseInstance
public void setCaseInstance(CmmnExecution caseInstance)
- Specified by:
setCaseInstancein classCmmnExecution
-
ensureCaseInstanceInitialized
protected void ensureCaseInstanceInitialized()
-
isCaseInstanceExecution
public boolean isCaseInstanceExecution()
Description copied from interface:CmmnActivityExecutionReturns
trueifthiscase execution is a case instance. Ifthiscase execution is not a case instance thenfalsewill be returned.- Specified by:
isCaseInstanceExecutionin interfaceCmmnActivityExecution- Overrides:
isCaseInstanceExecutionin classCmmnExecution- Returns:
- whether
thiscase execution is a case instance or not.
-
create
public void create(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:CmmnCaseInstanceThiscase instance transitions toACTIVEstate.The given
variableswill be set a case instance variables.- Specified by:
createin interfaceCmmnCaseInstance- Overrides:
createin classCmmnExecution
-
provideTenantId
protected void provideTenantId(java.util.Map<java.lang.String,java.lang.Object> variables)
-
createCaseExecution
protected CaseExecutionEntity createCaseExecution(CmmnActivity activity)
- Specified by:
createCaseExecutionin classCmmnExecution
-
newCaseExecution
protected CaseExecutionEntity newCaseExecution()
- Specified by:
newCaseExecutionin classCmmnExecution
-
getSuperExecutionId
public java.lang.String getSuperExecutionId()
-
setSuperExecutionId
public void setSuperExecutionId(java.lang.String superProcessExecutionId)
-
getSuperExecution
public ExecutionEntity getSuperExecution()
- Specified by:
getSuperExecutionin classCmmnExecution
-
setSuperExecution
public void setSuperExecution(PvmExecutionImpl superExecution)
- Specified by:
setSuperExecutionin classCmmnExecution
-
ensureSuperExecutionInstanceInitialized
protected void ensureSuperExecutionInstanceInitialized()
-
getSubProcessInstance
public ExecutionEntity getSubProcessInstance()
- Specified by:
getSubProcessInstancein classCmmnExecution
-
setSubProcessInstance
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
- Specified by:
setSubProcessInstancein classCmmnExecution
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition)
Description copied from interface:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof the subprocess.
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey)
Description copied from interface:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof the subprocess.businessKey- The businessKey to be set on sub process instance.
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey, java.lang.String caseInstanceId)
Description copied from interface:CmmnActivityExecutionCreates a new sub process instance.
Thiscase execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstancein interfaceCmmnActivityExecution- Specified by:
createSubProcessInstancein classCmmnExecution- Parameters:
processDefinition- ThePvmProcessDefinitionof the subprocess.businessKey- The businessKey to be set on sub process instance.caseInstanceId- The caseInstanceId to be set on sub process instance.
-
ensureSubProcessInstanceInitialized
protected void ensureSubProcessInstanceInitialized()
-
getSubCaseInstance
public CaseExecutionEntity getSubCaseInstance()
- Specified by:
getSubCaseInstancein classCmmnExecution
-
setSubCaseInstance
public void setSubCaseInstance(CmmnExecution subCaseInstance)
- Specified by:
setSubCaseInstancein classCmmnExecution
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Description copied from interface:CmmnActivityExecutionCreates a new sub case instance.
Thiscase execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceCmmnActivityExecution- Specified by:
createSubCaseInstancein classCmmnExecution- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)
Description copied from interface:CmmnActivityExecutionCreates a new sub case instance.
Thiscase execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstancein interfaceCmmnActivityExecution- Specified by:
createSubCaseInstancein classCmmnExecution- Parameters:
caseDefinition- TheCmmnCaseDefinitionof the sub case instance.businessKey- The businessKey to be set on sub case instance.
-
fireHistoricCaseActivityInstanceUpdate
public void fireHistoricCaseActivityInstanceUpdate()
-
ensureSubCaseInstanceInitialized
protected void ensureSubCaseInstanceInitialized()
-
getSuperCaseExecutionId
public java.lang.String getSuperCaseExecutionId()
-
setSuperCaseExecutionId
public void setSuperCaseExecutionId(java.lang.String superCaseExecutionId)
-
getSuperCaseExecution
public CmmnExecution getSuperCaseExecution()
- Specified by:
getSuperCaseExecutionin classCmmnExecution
-
setSuperCaseExecution
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
- Specified by:
setSuperCaseExecutionin classCmmnExecution
-
ensureSuperCaseExecutionInitialized
protected void ensureSuperCaseExecutionInitialized()
-
getCaseSentryParts
public java.util.List<CaseSentryPartEntity> getCaseSentryParts()
- Specified by:
getCaseSentryPartsin classCmmnExecution
-
ensureCaseSentryPartsInitialized
protected void ensureCaseSentryPartsInitialized()
-
addSentryPart
protected void addSentryPart(CmmnSentryPart sentryPart)
- Specified by:
addSentryPartin classCmmnExecution
-
getSentries
protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>> getSentries()
- Specified by:
getSentriesin classCmmnExecution
-
findSentry
protected java.util.List<CmmnSentryPart> findSentry(java.lang.String sentryId)
- Specified by:
findSentryin classCmmnExecution
-
newSentryPart
protected CaseSentryPartEntity newSentryPart()
- Specified by:
newSentryPartin classCmmnExecution
-
getVariableStore
protected VariableStore<CoreVariableInstance> getVariableStore()
- Specified by:
getVariableStorein classAbstractVariableScope
-
getVariableInstanceFactory
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
- Specified by:
getVariableInstanceFactoryin classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
- Specified by:
getVariableInstanceLifecycleListenersin classAbstractVariableScope
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables()
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables(java.util.Collection<java.lang.String> variableNames)
- Specified by:
provideVariablesin interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classCmmnExecution
-
getToStringIdentity
protected java.lang.String getToStringIdentity()
- Overrides:
getToStringIdentityin classCmmnExecution
-
remove
public void remove()
Description copied from interface:CmmnActivityExecutionRemoves
thiscase execution from the parent case execution.- Specified by:
removein interfaceCmmnActivityExecution- Overrides:
removein classCmmnExecution
-
getRevision
public int getRevision()
- Specified by:
getRevisionin interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevisionin interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNextin interfaceHasDbRevision
-
forceUpdate
public void forceUpdate()
-
getReferencedEntityIds
public java.util.Set<java.lang.String> getReferencedEntityIds()
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntityIdsin interfaceHasDbReferences- Returns:
- the ids of the entities that this entity references. Should only return ids for entities of the same type
-
getReferencedEntitiesIdAndClass
public java.util.Map<java.lang.String,java.lang.Class> getReferencedEntitiesIdAndClass()
Description copied from interface:HasDbReferencesScope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClassin interfaceHasDbReferences- Returns:
- a map of the ids and the entities' classes that this entity references. It's used when trying to determine if there was an Optimistic Locking occurrence on an INSERT or UPDATE of an object of this type.
-
getPersistentState
public java.lang.Object getPersistentState()
Description copied from interface:DbEntityReturns a representation of the object, as would be stored in the database. Used when deciding if updates have occurred to the object or not since it was last loaded.- Specified by:
getPersistentStatein interfaceDbEntity
-
getCmmnModelInstance
public CmmnModelInstance getCmmnModelInstance()
Description copied from interface:CmmnModelExecutionContextReturns theCmmnModelInstancefor the currently executed Cmmn Model- Specified by:
getCmmnModelInstancein interfaceCmmnModelExecutionContext- Returns:
- the current
CmmnModelInstance
-
getCmmnModelElementInstance
public CmmnElement getCmmnModelElementInstance()
Description copied from interface:CmmnModelExecutionContextReturns the currently executed Element in the Cmmn Model. This method returns a
CmmnElementwhich may be casted to the concrete type of the Cmmn Model Element currently executed.- Specified by:
getCmmnModelElementInstancein interfaceCmmnModelExecutionContext- Returns:
- the
CmmnElementcorresponding to the current Cmmn Model Element
-
getProcessEngineServices
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineServicesproviding access to the public API of the process engine.- Specified by:
getProcessEngineServicesin interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngineServices.
-
getProcessEngine
public ProcessEngine getProcessEngine()
Description copied from interface:ProcessEngineServicesAwareReturns theProcessEngineproviding access to the public API of the process engine.- Specified by:
getProcessEnginein interfaceProcessEngineServicesAware- Returns:
- the
ProcessEngine.
-
getCaseDefinitionTenantId
public java.lang.String getCaseDefinitionTenantId()
-
performOperation
public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
- Overrides:
performOperationin classCoreExecution
-
performOperationSync
public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
- Overrides:
performOperationSyncin classCoreExecution
-
-