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.String
activityDescription
protected java.lang.String
activityId
protected java.lang.String
activityName
protected java.lang.String
activityType
protected java.lang.String
caseDefinitionId
protected java.util.List<CaseExecutionEntity>
caseExecutions
nested executionsprotected CaseExecutionEntity
caseInstance
the case instance.protected java.lang.String
caseInstanceId
protected java.util.List<CaseSentryPartEntity>
caseSentryParts
nested case sentry partsprotected CaseExecutionEntity
parent
the parent executionprotected java.lang.String
parentId
protected int
revision
protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>>
sentries
protected CaseExecutionEntity
subCaseInstance
protected ExecutionEntity
subProcessInstance
reference to a sub process instance, not-null if currently subprocess is started from this executionprotected CaseExecutionEntity
superCaseExecution
protected java.lang.String
superCaseExecutionId
protected ExecutionEntity
superExecution
protected java.lang.String
superExecutionId
protected 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 void
addSentryPart(CmmnSentryPart sentryPart)
void
create(java.util.Map<java.lang.String,java.lang.Object> variables)
This
case instance transitions toACTIVE
state.protected CaseExecutionEntity
createCaseExecution(CmmnActivity activity)
CaseExecutionEntity
createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Creates a new sub case instance.CaseExecutionEntity
createSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)
Creates a new sub case instance.ExecutionEntity
createSubProcessInstance(PvmProcessDefinition processDefinition)
Creates a new sub process instance.ExecutionEntity
createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey)
Creates a new sub process instance.ExecutionEntity
createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey, java.lang.String caseInstanceId)
Creates a new sub process instance.TaskEntity
createTask(TaskDecorator taskDecorator)
Creates a new task.protected void
ensureActivityInitialized()
protected void
ensureCaseDefinitionInitialized()
protected void
ensureCaseExecutionsInitialized()
protected void
ensureCaseExecutionTreeInitialized()
protected void
ensureCaseInstanceInitialized()
protected void
ensureCaseSentryPartsInitialized()
protected void
ensureParentInitialized()
protected void
ensureSubCaseInstanceInitialized()
protected void
ensureSubProcessInstanceInitialized()
protected void
ensureSuperCaseExecutionInitialized()
protected void
ensureSuperExecutionInstanceInitialized()
protected void
ensureTaskInitialized()
protected java.util.List<CmmnSentryPart>
findSentry(java.lang.String sentryId)
void
fireHistoricCaseActivityInstanceUpdate()
void
forceUpdate()
CmmnActivity
getActivity()
ensures initialization and returns the activityjava.lang.String
getActivityDescription()
The description of the activity associated withthis
case execution.java.lang.String
getActivityId()
The id of the activity associated withthis
case execution.java.lang.String
getActivityName()
The name of the activity associated withthis
case execution.protected java.lang.String
getActivityProperty(CmmnActivity activity, java.lang.String property)
java.lang.String
getActivityType()
The type of the activity associated withthis
case execution.CmmnCaseDefinition
getCaseDefinition()
ensures initialization and returns the case definition.java.lang.String
getCaseDefinitionId()
The id of the case definition of the case execution.java.util.List<CaseExecutionEntity>
getCaseExecutions()
Returns aList
of child case executions.protected java.util.List<CaseExecutionEntity>
getCaseExecutionsInternal()
CaseExecutionEntity
getCaseInstance()
ensures initialization and returns the process instance.java.lang.String
getCaseInstanceId()
ensures initialization and returns the process instance.java.util.List<CaseSentryPartEntity>
getCaseSentryParts()
CmmnElement
getCmmnModelElementInstance()
Returns the currently executed Element in the Cmmn Model.CmmnModelInstance
getCmmnModelInstance()
Returns theCmmnModelInstance
for the currently executed Cmmn ModelCaseExecutionEntity
getParent()
ensures initialization and returns the parentjava.lang.String
getParentId()
The id of the parent ofthis
case execution.java.lang.Object
getPersistentState()
Returns a representation of the object, as would be stored in the database.ProcessEngine
getProcessEngine()
Returns theProcessEngine
providing access to the public API of the process engine.ProcessEngineServices
getProcessEngineServices()
Returns theProcessEngineServices
providing 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 referencesint
getRevision()
int
getRevisionNext()
protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>>
getSentries()
CaseExecutionEntity
getSubCaseInstance()
ExecutionEntity
getSubProcessInstance()
CmmnExecution
getSuperCaseExecution()
java.lang.String
getSuperCaseExecutionId()
ExecutionEntity
getSuperExecution()
java.lang.String
getSuperExecutionId()
TaskEntity
getTask()
protected java.lang.String
getToStringIdentity()
protected VariableInstanceFactory<CoreVariableInstance>
getVariableInstanceFactory()
protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>>
getVariableInstanceLifecycleListeners()
protected VariableStore<CoreVariableInstance>
getVariableStore()
boolean
isCaseInstanceExecution()
Returnstrue
ifthis
case execution is a case instance.protected boolean
isExecutionTreePrefetchEnabled()
protected CaseExecutionEntity
newCaseExecution()
protected CaseSentryPartEntity
newSentryPart()
<T extends CoreExecution>
voidperformOperation(CoreAtomicOperation<T> operation)
<T extends CoreExecution>
voidperformOperationSync(CoreAtomicOperation<T> operation)
protected void
provideTenantId(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)
void
remove()
Removesthis
case execution from the parent case execution.void
setActivity(CmmnActivity activity)
void
setCaseDefinition(CmmnCaseDefinition caseDefinition)
void
setCaseInstance(CmmnExecution caseInstance)
void
setParent(CmmnExecution parent)
void
setRevision(int revision)
void
setSubCaseInstance(CmmnExecution subCaseInstance)
void
setSubProcessInstance(PvmExecutionImpl subProcessInstance)
void
setSuperCaseExecution(CmmnExecution superCaseExecution)
void
setSuperCaseExecutionId(java.lang.String superCaseExecutionId)
void
setSuperExecution(PvmExecutionImpl superExecution)
void
setSuperExecutionId(java.lang.String superProcessExecutionId)
java.lang.String
toString()
-
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:CaseExecution
The id of the case definition of the case execution.
- Specified by:
getCaseDefinitionId
in interfaceCaseExecution
- Specified by:
getCaseDefinitionId
in interfaceDelegateCaseExecution
-
getCaseDefinition
public CmmnCaseDefinition getCaseDefinition()
ensures initialization and returns the case definition.- Overrides:
getCaseDefinition
in classCmmnExecution
-
setCaseDefinition
public void setCaseDefinition(CmmnCaseDefinition caseDefinition)
- Overrides:
setCaseDefinition
in classCmmnExecution
-
ensureCaseDefinitionInitialized
protected void ensureCaseDefinitionInitialized()
-
getParent
public CaseExecutionEntity getParent()
Description copied from class:CmmnExecution
ensures initialization and returns the parent- Specified by:
getParent
in interfaceCmmnActivityExecution
- Specified by:
getParent
in classCmmnExecution
- Returns:
- a
parent
or null.
-
setParent
public void setParent(CmmnExecution parent)
- Specified by:
setParent
in 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:CaseExecution
The id of the parent of
this
case execution.- Specified by:
getParentId
in interfaceCaseExecution
- Specified by:
getParentId
in interfaceDelegateCaseExecution
-
getActivity
public CmmnActivity getActivity()
Description copied from class:CmmnExecution
ensures initialization and returns the activity- Specified by:
getActivity
in interfaceCmmnActivityExecution
- Overrides:
getActivity
in classCmmnExecution
- Returns:
- the associated
activity
-
setActivity
public void setActivity(CmmnActivity activity)
- Overrides:
setActivity
in 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:CaseExecution
The id of the activity associated with
this
case execution.- Specified by:
getActivityId
in interfaceCaseExecution
- Specified by:
getActivityId
in interfaceDelegateCaseExecution
-
getActivityName
public java.lang.String getActivityName()
Description copied from interface:CaseExecution
The name of the activity associated with
this
case execution.- Specified by:
getActivityName
in interfaceCaseExecution
- Specified by:
getActivityName
in interfaceDelegateCaseExecution
-
getActivityType
public java.lang.String getActivityType()
Description copied from interface:CaseExecution
The type of the activity associated with
this
case execution.- Specified by:
getActivityType
in interfaceCaseExecution
-
getActivityDescription
public java.lang.String getActivityDescription()
Description copied from interface:CaseExecution
The description of the activity associated with
this
case execution.- Specified by:
getActivityDescription
in interfaceCaseExecution
-
getCaseExecutions
public java.util.List<CaseExecutionEntity> getCaseExecutions()
Description copied from interface:CmmnActivityExecution
Returns a
List
of child case executions. Ifthis
case execution has no child case executions an emptyList
will be returned.- Specified by:
getCaseExecutions
in interfaceCmmnActivityExecution
- Specified by:
getCaseExecutions
in classCmmnExecution
- Returns:
- a
List
of child case executions.
-
getCaseExecutionsInternal
protected java.util.List<CaseExecutionEntity> getCaseExecutionsInternal()
- Specified by:
getCaseExecutionsInternal
in classCmmnExecution
-
ensureCaseExecutionsInitialized
protected void ensureCaseExecutionsInitialized()
-
getTask
public TaskEntity getTask()
- Overrides:
getTask
in classCmmnExecution
-
ensureTaskInitialized
protected void ensureTaskInitialized()
-
createTask
public TaskEntity createTask(TaskDecorator taskDecorator)
Description copied from interface:CmmnActivityExecution
Creates a new task.
case execution will be the case execution of the created task.This
- Specified by:
createTask
in interfaceCmmnActivityExecution
- Overrides:
createTask
in classCmmnExecution
- Parameters:
taskDecorator
- the task decorator used to create task
-
getCaseInstanceId
public java.lang.String getCaseInstanceId()
Description copied from class:CmmnExecution
ensures initialization and returns the process instance.- Specified by:
getCaseInstanceId
in interfaceCaseExecution
- Specified by:
getCaseInstanceId
in interfaceDelegateCaseExecution
- Overrides:
getCaseInstanceId
in classCmmnExecution
-
getCaseInstance
public CaseExecutionEntity getCaseInstance()
Description copied from class:CmmnExecution
ensures initialization and returns the process instance.- Specified by:
getCaseInstance
in classCmmnExecution
-
setCaseInstance
public void setCaseInstance(CmmnExecution caseInstance)
- Specified by:
setCaseInstance
in classCmmnExecution
-
ensureCaseInstanceInitialized
protected void ensureCaseInstanceInitialized()
-
isCaseInstanceExecution
public boolean isCaseInstanceExecution()
Description copied from interface:CmmnActivityExecution
Returns
true
ifthis
case execution is a case instance. Ifthis
case execution is not a case instance thenfalse
will be returned.- Specified by:
isCaseInstanceExecution
in interfaceCmmnActivityExecution
- Overrides:
isCaseInstanceExecution
in classCmmnExecution
- Returns:
- whether
this
case 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:CmmnCaseInstance
This
case instance transitions toACTIVE
state.The given
variables
will be set a case instance variables.- Specified by:
create
in interfaceCmmnCaseInstance
- Overrides:
create
in classCmmnExecution
-
provideTenantId
protected void provideTenantId(java.util.Map<java.lang.String,java.lang.Object> variables)
-
createCaseExecution
protected CaseExecutionEntity createCaseExecution(CmmnActivity activity)
- Specified by:
createCaseExecution
in classCmmnExecution
-
newCaseExecution
protected CaseExecutionEntity newCaseExecution()
- Specified by:
newCaseExecution
in classCmmnExecution
-
getSuperExecutionId
public java.lang.String getSuperExecutionId()
-
setSuperExecutionId
public void setSuperExecutionId(java.lang.String superProcessExecutionId)
-
getSuperExecution
public ExecutionEntity getSuperExecution()
- Specified by:
getSuperExecution
in classCmmnExecution
-
setSuperExecution
public void setSuperExecution(PvmExecutionImpl superExecution)
- Specified by:
setSuperExecution
in classCmmnExecution
-
ensureSuperExecutionInstanceInitialized
protected void ensureSuperExecutionInstanceInitialized()
-
getSubProcessInstance
public ExecutionEntity getSubProcessInstance()
- Specified by:
getSubProcessInstance
in classCmmnExecution
-
setSubProcessInstance
public void setSubProcessInstance(PvmExecutionImpl subProcessInstance)
- Specified by:
setSubProcessInstance
in classCmmnExecution
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition)
Description copied from interface:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of the subprocess.
-
createSubProcessInstance
public ExecutionEntity createSubProcessInstance(PvmProcessDefinition processDefinition, java.lang.String businessKey)
Description copied from interface:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of 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:CmmnActivityExecution
Creates a new sub process instance.
This
case execution will be the super case execution of the created sub process instance.- Specified by:
createSubProcessInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubProcessInstance
in classCmmnExecution
- Parameters:
processDefinition
- ThePvmProcessDefinition
of 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:
getSubCaseInstance
in classCmmnExecution
-
setSubCaseInstance
public void setSubCaseInstance(CmmnExecution subCaseInstance)
- Specified by:
setSubCaseInstance
in classCmmnExecution
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition)
Description copied from interface:CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubCaseInstance
in classCmmnExecution
- Parameters:
caseDefinition
- TheCmmnCaseDefinition
of the sub case instance.
-
createSubCaseInstance
public CaseExecutionEntity createSubCaseInstance(CmmnCaseDefinition caseDefinition, java.lang.String businessKey)
Description copied from interface:CmmnActivityExecution
Creates a new sub case instance.
This
case execution will be the super case execution of the created sub case instance.- Specified by:
createSubCaseInstance
in interfaceCmmnActivityExecution
- Specified by:
createSubCaseInstance
in classCmmnExecution
- Parameters:
caseDefinition
- TheCmmnCaseDefinition
of 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:
getSuperCaseExecution
in classCmmnExecution
-
setSuperCaseExecution
public void setSuperCaseExecution(CmmnExecution superCaseExecution)
- Specified by:
setSuperCaseExecution
in classCmmnExecution
-
ensureSuperCaseExecutionInitialized
protected void ensureSuperCaseExecutionInitialized()
-
getCaseSentryParts
public java.util.List<CaseSentryPartEntity> getCaseSentryParts()
- Specified by:
getCaseSentryParts
in classCmmnExecution
-
ensureCaseSentryPartsInitialized
protected void ensureCaseSentryPartsInitialized()
-
addSentryPart
protected void addSentryPart(CmmnSentryPart sentryPart)
- Specified by:
addSentryPart
in classCmmnExecution
-
getSentries
protected java.util.Map<java.lang.String,java.util.List<CmmnSentryPart>> getSentries()
- Specified by:
getSentries
in classCmmnExecution
-
findSentry
protected java.util.List<CmmnSentryPart> findSentry(java.lang.String sentryId)
- Specified by:
findSentry
in classCmmnExecution
-
newSentryPart
protected CaseSentryPartEntity newSentryPart()
- Specified by:
newSentryPart
in classCmmnExecution
-
getVariableStore
protected VariableStore<CoreVariableInstance> getVariableStore()
- Specified by:
getVariableStore
in classAbstractVariableScope
-
getVariableInstanceFactory
protected VariableInstanceFactory<CoreVariableInstance> getVariableInstanceFactory()
- Specified by:
getVariableInstanceFactory
in classAbstractVariableScope
-
getVariableInstanceLifecycleListeners
protected java.util.List<VariableInstanceLifecycleListener<CoreVariableInstance>> getVariableInstanceLifecycleListeners()
- Specified by:
getVariableInstanceLifecycleListeners
in classAbstractVariableScope
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables()
- Specified by:
provideVariables
in interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
provideVariables
public java.util.Collection<VariableInstanceEntity> provideVariables(java.util.Collection<java.lang.String> variableNames)
- Specified by:
provideVariables
in interfaceVariableStore.VariablesProvider<VariableInstanceEntity>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCmmnExecution
-
getToStringIdentity
protected java.lang.String getToStringIdentity()
- Overrides:
getToStringIdentity
in classCmmnExecution
-
remove
public void remove()
Description copied from interface:CmmnActivityExecution
Removes
this
case execution from the parent case execution.- Specified by:
remove
in interfaceCmmnActivityExecution
- Overrides:
remove
in classCmmnExecution
-
getRevision
public int getRevision()
- Specified by:
getRevision
in interfaceHasDbRevision
-
setRevision
public void setRevision(int revision)
- Specified by:
setRevision
in interfaceHasDbRevision
-
getRevisionNext
public int getRevisionNext()
- Specified by:
getRevisionNext
in interfaceHasDbRevision
-
forceUpdate
public void forceUpdate()
-
getReferencedEntityIds
public java.util.Set<java.lang.String> getReferencedEntityIds()
Description copied from interface:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntityIds
in 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:HasDbReferences
Scope: IN-MEMORY references
- Specified by:
getReferencedEntitiesIdAndClass
in 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:DbEntity
Returns 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:
getPersistentState
in interfaceDbEntity
-
getCmmnModelInstance
public CmmnModelInstance getCmmnModelInstance()
Description copied from interface:CmmnModelExecutionContext
Returns theCmmnModelInstance
for the currently executed Cmmn Model- Specified by:
getCmmnModelInstance
in interfaceCmmnModelExecutionContext
- Returns:
- the current
CmmnModelInstance
-
getCmmnModelElementInstance
public CmmnElement getCmmnModelElementInstance()
Description copied from interface: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.- Specified by:
getCmmnModelElementInstance
in interfaceCmmnModelExecutionContext
- Returns:
- the
CmmnElement
corresponding to the current Cmmn Model Element
-
getProcessEngineServices
public ProcessEngineServices getProcessEngineServices()
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngineServices
providing access to the public API of the process engine.- Specified by:
getProcessEngineServices
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngineServices
.
-
getProcessEngine
public ProcessEngine getProcessEngine()
Description copied from interface:ProcessEngineServicesAware
Returns theProcessEngine
providing access to the public API of the process engine.- Specified by:
getProcessEngine
in interfaceProcessEngineServicesAware
- Returns:
- the
ProcessEngine
.
-
performOperation
public <T extends CoreExecution> void performOperation(CoreAtomicOperation<T> operation)
- Overrides:
performOperation
in classCoreExecution
-
performOperationSync
public <T extends CoreExecution> void performOperationSync(CoreAtomicOperation<T> operation)
- Overrides:
performOperationSync
in classCoreExecution
-
-