Class CaseInstanceEntityImpl
java.lang.Object
org.flowable.common.engine.impl.persistence.entity.AbstractEntity
org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
org.flowable.cmmn.engine.impl.persistence.entity.AbstractCmmnEngineVariableScopeEntity
org.flowable.cmmn.engine.impl.persistence.entity.CaseInstanceEntityImpl
- All Implemented Interfaces:
Serializable
,CaseInstance
,CaseInstanceEntity
,EntityWithSentryPartInstances
,PlanItemInstanceContainer
,VariableContainer
,HasRevision
,Entity
,VariableScope
public class CaseInstanceEntityImpl
extends AbstractCmmnEngineVariableScopeEntity
implements CaseInstanceEntity
- Author:
- Joram Barrez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected String
protected String
protected Integer
protected List<PlanItemInstanceEntity>
protected boolean
protected Date
protected String
protected String
protected String
protected Date
protected String
protected String
protected List<VariableInstanceEntity>
protected String
protected String
protected List<SentryPartInstanceEntity>
protected Date
protected String
protected String
protected String
Fields inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariables, usedVariablesCache, variableInstances
Fields inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
id, isDeleted, isInserted, isUpdated, originalPersistentState, revision
-
Constructor Summary
ConstructorsConstructorDescriptionCaseInstanceEntityImpl
(HistoricCaseInstance historicCaseInstance, Map<String, VariableInstanceEntity> variables) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addLoggingSessionInfo
(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) protected VariableInstanceEntity
createVariableInstance
(String variableName, Object value) Returns the case variables if requested in the case instance querygetName()
protected VariableScopeImpl
Returns a representation of the object, as would be stored in the database.protected VariableInstanceEntity
getSpecificVariable
(String variableName) protected List<VariableInstanceEntity>
getSpecificVariables
(Collection<String> variableNames) getState()
protected VariableServiceConfiguration
protected void
initializeVariableInstanceBackPointer
(VariableInstance variableInstance) boolean
boolean
Only here due to MyBatis and the old typo can be removed, if we would do a DB updateprotected boolean
Return whether changes to the variables are propagated to the history storage.protected Collection<VariableInstanceEntity>
void
setBusinessKey
(String businessKey) void
setBusinessStatus
(String businessStatus) void
setCallbackId
(String callbackId) void
setCallbackType
(String callbackType) void
setCaseDefinitionDeploymentId
(String caseDefinitionDeploymentId) void
setCaseDefinitionId
(String caseDefinitionId) void
setCaseDefinitionKey
(String caseDefinitionKey) void
setCaseDefinitionName
(String caseDefinitionName) void
setCaseDefinitionVersion
(Integer caseDefinitionVersion) void
setChildPlanItemInstances
(List<PlanItemInstanceEntity> childPlanItemInstances) void
setCompletable
(boolean completable) void
setCompleteable
(boolean completable) Only here due to MyBatis and the old typo can be removed, if we would do a DB updatevoid
setLastReactivationTime
(Date lastReactivationTime) void
setLastReactivationUserId
(String lastReactivationUserId) void
setLocalizedName
(String localizedName) Sets an optional localized name for the case.void
setLockOwner
(String lockOwner) void
setLockTime
(Date lockTime) void
void
setParentId
(String parentId) void
setQueryVariables
(List<VariableInstanceEntity> queryVariables) void
setReferenceId
(String referenceId) void
setReferenceType
(String referenceType) void
setSatisfiedSentryPartInstances
(List<SentryPartInstanceEntity> sentryPartInstanceEntities) void
setStartTime
(Date startTime) void
setStartUserId
(String startUserId) void
void
setTenantId
(String tenantId) toString()
protected void
updateVariableInstance
(VariableInstanceEntity variableInstance, Object value) Methods inherited from class org.flowable.cmmn.engine.impl.persistence.entity.AbstractCmmnEngineVariableScopeEntity
getIdPrefix
Methods inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
collectTransientVariables, collectVariableInstances, collectVariableNames, collectVariables, createVariableLocal, createVariablesLocal, deleteVariableInstanceForExplicitUserCall, ensureVariableInstancesInitialized, getCachedElContext, getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getUsedVariablesCache, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceEntities, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, internalSetVariableInstances, isExpression, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setCachedElContext, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal, storeVariableLocal
Methods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdated
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.flowable.cmmn.api.runtime.CaseInstance
getId
Methods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdated
Methods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevision
Methods inherited from interface org.flowable.variable.api.delegate.VariableScope
getTransientVariable, getTransientVariableLocal, getTransientVariables, getTransientVariablesLocal, getVariable, getVariable, getVariable, getVariableInstance, getVariableInstance, getVariableInstanceLocal, getVariableInstanceLocal, getVariableInstances, getVariableInstances, getVariableInstances, getVariableInstancesLocal, getVariableInstancesLocal, getVariableInstancesLocal, getVariableLocal, getVariableLocal, getVariableLocal, getVariableNames, getVariableNamesLocal, getVariables, getVariables, getVariables, getVariablesLocal, getVariablesLocal, getVariablesLocal, hasVariable, hasVariableLocal, hasVariables, hasVariablesLocal, removeTransientVariable, removeTransientVariableLocal, removeTransientVariables, removeTransientVariablesLocal, removeVariable, removeVariableLocal, removeVariables, removeVariables, removeVariablesLocal, removeVariablesLocal, setTransientVariable, setTransientVariableLocal, setTransientVariables, setTransientVariablesLocal, setVariable, setVariable, setVariableLocal, setVariableLocal, setVariables, setVariablesLocal
-
Field Details
-
businessKey
-
businessStatus
-
name
-
parentId
-
caseDefinitionId
-
state
-
startTime
-
startUserId
-
lastReactivationTime
-
lastReactivationUserId
-
callbackId
-
callbackType
-
referenceId
-
referenceType
-
completable
protected boolean completable -
tenantId
-
lockTime
-
lockOwner
-
childPlanItemInstances
-
satisfiedSentryPartInstances
-
localizedName
-
queryVariables
-
caseDefinitionKey
-
caseDefinitionName
-
caseDefinitionVersion
-
caseDefinitionDeploymentId
-
-
Constructor Details
-
CaseInstanceEntityImpl
public CaseInstanceEntityImpl() -
CaseInstanceEntityImpl
public CaseInstanceEntityImpl(HistoricCaseInstance historicCaseInstance, Map<String, VariableInstanceEntity> variables)
-
-
Method Details
-
getPersistentState
Description copied from interface:Entity
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 interfaceEntity
-
getBusinessKey
- Specified by:
getBusinessKey
in interfaceCaseInstance
-
setBusinessKey
- Specified by:
setBusinessKey
in interfaceCaseInstanceEntity
-
getBusinessStatus
- Specified by:
getBusinessStatus
in interfaceCaseInstance
-
setBusinessStatus
- Specified by:
setBusinessStatus
in interfaceCaseInstanceEntity
-
getName
- Specified by:
getName
in interfaceCaseInstance
-
setName
- Specified by:
setName
in interfaceCaseInstanceEntity
-
getParentId
- Specified by:
getParentId
in interfaceCaseInstance
-
setParentId
- Specified by:
setParentId
in interfaceCaseInstanceEntity
-
getCaseDefinitionId
- Specified by:
getCaseDefinitionId
in interfaceCaseInstance
-
setCaseDefinitionId
- Specified by:
setCaseDefinitionId
in interfaceCaseInstanceEntity
-
getState
- Specified by:
getState
in interfaceCaseInstance
-
setState
- Specified by:
setState
in interfaceCaseInstanceEntity
-
getStartTime
- Specified by:
getStartTime
in interfaceCaseInstance
-
setStartTime
- Specified by:
setStartTime
in interfaceCaseInstanceEntity
-
getStartUserId
- Specified by:
getStartUserId
in interfaceCaseInstance
-
setStartUserId
- Specified by:
setStartUserId
in interfaceCaseInstanceEntity
-
getLastReactivationTime
- Specified by:
getLastReactivationTime
in interfaceCaseInstance
-
setLastReactivationTime
- Specified by:
setLastReactivationTime
in interfaceCaseInstanceEntity
-
getLastReactivationUserId
- Specified by:
getLastReactivationUserId
in interfaceCaseInstance
-
setLastReactivationUserId
- Specified by:
setLastReactivationUserId
in interfaceCaseInstanceEntity
-
isCompletable
public boolean isCompletable()- Specified by:
isCompletable
in interfaceCaseInstance
-
setCompletable
public void setCompletable(boolean completable) - Specified by:
setCompletable
in interfaceCaseInstanceEntity
-
isCompleteable
public boolean isCompleteable()Only here due to MyBatis and the old typo can be removed, if we would do a DB update -
setCompleteable
public void setCompleteable(boolean completable) Only here due to MyBatis and the old typo can be removed, if we would do a DB update -
getCallbackId
- Specified by:
getCallbackId
in interfaceCaseInstance
-
setCallbackId
- Specified by:
setCallbackId
in interfaceCaseInstanceEntity
-
getCallbackType
- Specified by:
getCallbackType
in interfaceCaseInstance
-
setCallbackType
- Specified by:
setCallbackType
in interfaceCaseInstanceEntity
-
getReferenceId
- Specified by:
getReferenceId
in interfaceCaseInstance
-
setReferenceId
- Specified by:
setReferenceId
in interfaceCaseInstanceEntity
-
getReferenceType
- Specified by:
getReferenceType
in interfaceCaseInstance
-
setReferenceType
- Specified by:
setReferenceType
in interfaceCaseInstanceEntity
-
getTenantId
- Specified by:
getTenantId
in interfaceCaseInstance
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantId
in interfaceCaseInstanceEntity
-
getLockTime
- Specified by:
getLockTime
in interfaceCaseInstanceEntity
-
setLockTime
- Specified by:
setLockTime
in interfaceCaseInstanceEntity
-
getLockOwner
- Specified by:
getLockOwner
in interfaceCaseInstanceEntity
-
setLockOwner
- Specified by:
setLockOwner
in interfaceCaseInstanceEntity
-
getPlanItems
- Specified by:
getPlanItems
in interfacePlanItemInstanceContainer
- Returns:
- All the
PlanItem
's definition in theCmmnModel
.
-
getChildPlanItemInstances
- Specified by:
getChildPlanItemInstances
in interfacePlanItemInstanceContainer
- Returns:
- All child plan item instances that are not in a terminal state.
-
setChildPlanItemInstances
- Specified by:
setChildPlanItemInstances
in interfacePlanItemInstanceContainer
- Parameters:
childPlanItemInstances
- Sets the child plan item instances of this container.
-
getSatisfiedSentryPartInstances
- Specified by:
getSatisfiedSentryPartInstances
in interfaceEntityWithSentryPartInstances
-
setSatisfiedSentryPartInstances
public void setSatisfiedSentryPartInstances(List<SentryPartInstanceEntity> sentryPartInstanceEntities) - Specified by:
setSatisfiedSentryPartInstances
in interfaceEntityWithSentryPartInstances
-
loadVariableInstances
- Specified by:
loadVariableInstances
in classVariableScopeImpl
-
getParentVariableScope
- Specified by:
getParentVariableScope
in classVariableScopeImpl
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointer
in classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfo
in classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariable
in classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariables
in classVariableScopeImpl
-
createVariableInstance
- Overrides:
createVariableInstance
in classVariableScopeImpl
-
updateVariableInstance
- Overrides:
updateVariableInstance
in classVariableScopeImpl
-
isPropagateToHistoricVariable
protected boolean isPropagateToHistoricVariable()Description copied from class:VariableScopeImpl
Return whether changes to the variables are propagated to the history storage.- Specified by:
isPropagateToHistoricVariable
in classVariableScopeImpl
-
getVariableServiceConfiguration
- Specified by:
getVariableServiceConfiguration
in classVariableScopeImpl
-
getCaseVariables
Description copied from interface:CaseInstance
Returns the case variables if requested in the case instance query- Specified by:
getCaseVariables
in interfaceCaseInstance
-
getLocalizedName
-
setLocalizedName
Description copied from interface:CaseInstance
Sets an optional localized name for the case.- Specified by:
setLocalizedName
in interfaceCaseInstance
-
getQueryVariables
- Specified by:
getQueryVariables
in interfaceCaseInstanceEntity
-
setQueryVariables
-
getCaseDefinitionKey
- Specified by:
getCaseDefinitionKey
in interfaceCaseInstance
-
setCaseDefinitionKey
- Specified by:
setCaseDefinitionKey
in interfaceCaseInstanceEntity
-
getCaseDefinitionName
- Specified by:
getCaseDefinitionName
in interfaceCaseInstance
-
setCaseDefinitionName
- Specified by:
setCaseDefinitionName
in interfaceCaseInstanceEntity
-
getCaseDefinitionVersion
- Specified by:
getCaseDefinitionVersion
in interfaceCaseInstance
-
setCaseDefinitionVersion
- Specified by:
setCaseDefinitionVersion
in interfaceCaseInstanceEntity
-
getCaseDefinitionDeploymentId
- Specified by:
getCaseDefinitionDeploymentId
in interfaceCaseInstance
-
setCaseDefinitionDeploymentId
- Specified by:
setCaseDefinitionDeploymentId
in interfaceCaseInstanceEntity
-
toString
-