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 Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Integerprotected List<PlanItemInstanceEntity>protected booleanprotected Dateprotected Stringprotected Stringprotected Stringprotected Dateprotected Stringprotected Stringprotected List<VariableInstanceEntity>protected Stringprotected Stringprotected List<SentryPartInstanceEntity>protected Dateprotected Stringprotected Stringprotected StringFields inherited from class org.flowable.variable.service.impl.persistence.entity.VariableScopeImpl
cachedElContext, transientVariables, usedVariablesCache, variableInstancesFields 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 voidaddLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) protected VariableInstanceEntitycreateVariableInstance(String variableName, Object value) Returns the case variables if requested in the case instance querygetName()protected VariableScopeImplReturns a representation of the object, as would be stored in the database.protected VariableInstanceEntitygetSpecificVariable(String variableName) protected List<VariableInstanceEntity>getSpecificVariables(Collection<String> variableNames) getState()protected VariableServiceConfigurationprotected voidinitializeVariableInstanceBackPointer(VariableInstance variableInstance) booleanbooleanOnly here due to MyBatis and the old typo can be removed, if we would do a DB updateprotected booleanReturn whether changes to the variables are propagated to the history storage.protected Collection<VariableInstanceEntity>voidsetBusinessKey(String businessKey) voidsetBusinessStatus(String businessStatus) voidsetCallbackId(String callbackId) voidsetCallbackType(String callbackType) voidsetCaseDefinitionDeploymentId(String caseDefinitionDeploymentId) voidsetCaseDefinitionId(String caseDefinitionId) voidsetCaseDefinitionKey(String caseDefinitionKey) voidsetCaseDefinitionName(String caseDefinitionName) voidsetCaseDefinitionVersion(Integer caseDefinitionVersion) voidsetChildPlanItemInstances(List<PlanItemInstanceEntity> childPlanItemInstances) voidsetCompletable(boolean completable) voidsetCompleteable(boolean completable) Only here due to MyBatis and the old typo can be removed, if we would do a DB updatevoidsetLastReactivationTime(Date lastReactivationTime) voidsetLastReactivationUserId(String lastReactivationUserId) voidsetLocalizedName(String localizedName) Sets an optional localized name for the case.voidsetLockOwner(String lockOwner) voidsetLockTime(Date lockTime) voidvoidsetParentId(String parentId) voidsetQueryVariables(List<VariableInstanceEntity> queryVariables) voidsetReferenceId(String referenceId) voidsetReferenceType(String referenceType) voidsetSatisfiedSentryPartInstances(List<SentryPartInstanceEntity> sentryPartInstanceEntities) voidsetStartTime(Date startTime) voidsetStartUserId(String startUserId) voidvoidsetTenantId(String tenantId) toString()protected voidupdateVariableInstance(VariableInstanceEntity variableInstance, Object value) Methods inherited from class org.flowable.cmmn.engine.impl.persistence.entity.AbstractCmmnEngineVariableScopeEntity
getIdPrefixMethods 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, storeVariableLocalMethods inherited from class org.flowable.common.engine.impl.persistence.entity.AbstractEntity
getId, getOriginalPersistentState, getRevision, getRevisionNext, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setRevision, setUpdatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flowable.cmmn.api.runtime.CaseInstance
getIdMethods inherited from interface org.flowable.common.engine.impl.persistence.entity.Entity
getId, getIdPrefix, getOriginalPersistentState, isDeleted, isInserted, isUpdated, setDeleted, setId, setInserted, setOriginalPersistentState, setUpdatedMethods inherited from interface org.flowable.common.engine.impl.db.HasRevision
getRevision, getRevisionNext, setRevisionMethods 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:EntityReturns 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 interfaceEntity
-
getBusinessKey
- Specified by:
getBusinessKeyin interfaceCaseInstance
-
setBusinessKey
- Specified by:
setBusinessKeyin interfaceCaseInstanceEntity
-
getBusinessStatus
- Specified by:
getBusinessStatusin interfaceCaseInstance
-
setBusinessStatus
- Specified by:
setBusinessStatusin interfaceCaseInstanceEntity
-
getName
- Specified by:
getNamein interfaceCaseInstance
-
setName
- Specified by:
setNamein interfaceCaseInstanceEntity
-
getParentId
- Specified by:
getParentIdin interfaceCaseInstance
-
setParentId
- Specified by:
setParentIdin interfaceCaseInstanceEntity
-
getCaseDefinitionId
- Specified by:
getCaseDefinitionIdin interfaceCaseInstance
-
setCaseDefinitionId
- Specified by:
setCaseDefinitionIdin interfaceCaseInstanceEntity
-
getState
- Specified by:
getStatein interfaceCaseInstance
-
setState
- Specified by:
setStatein interfaceCaseInstanceEntity
-
getStartTime
- Specified by:
getStartTimein interfaceCaseInstance
-
setStartTime
- Specified by:
setStartTimein interfaceCaseInstanceEntity
-
getStartUserId
- Specified by:
getStartUserIdin interfaceCaseInstance
-
setStartUserId
- Specified by:
setStartUserIdin interfaceCaseInstanceEntity
-
getLastReactivationTime
- Specified by:
getLastReactivationTimein interfaceCaseInstance
-
setLastReactivationTime
- Specified by:
setLastReactivationTimein interfaceCaseInstanceEntity
-
getLastReactivationUserId
- Specified by:
getLastReactivationUserIdin interfaceCaseInstance
-
setLastReactivationUserId
- Specified by:
setLastReactivationUserIdin interfaceCaseInstanceEntity
-
isCompletable
public boolean isCompletable()- Specified by:
isCompletablein interfaceCaseInstance
-
setCompletable
public void setCompletable(boolean completable) - Specified by:
setCompletablein 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:
getCallbackIdin interfaceCaseInstance
-
setCallbackId
- Specified by:
setCallbackIdin interfaceCaseInstanceEntity
-
getCallbackType
- Specified by:
getCallbackTypein interfaceCaseInstance
-
setCallbackType
- Specified by:
setCallbackTypein interfaceCaseInstanceEntity
-
getReferenceId
- Specified by:
getReferenceIdin interfaceCaseInstance
-
setReferenceId
- Specified by:
setReferenceIdin interfaceCaseInstanceEntity
-
getReferenceType
- Specified by:
getReferenceTypein interfaceCaseInstance
-
setReferenceType
- Specified by:
setReferenceTypein interfaceCaseInstanceEntity
-
getTenantId
- Specified by:
getTenantIdin interfaceCaseInstance- Specified by:
getTenantIdin interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantIdin interfaceCaseInstanceEntity
-
getLockTime
- Specified by:
getLockTimein interfaceCaseInstanceEntity
-
setLockTime
- Specified by:
setLockTimein interfaceCaseInstanceEntity
-
getLockOwner
- Specified by:
getLockOwnerin interfaceCaseInstanceEntity
-
setLockOwner
- Specified by:
setLockOwnerin interfaceCaseInstanceEntity
-
getPlanItems
- Specified by:
getPlanItemsin interfacePlanItemInstanceContainer- Returns:
- All the
PlanItem's definition in theCmmnModel.
-
getChildPlanItemInstances
- Specified by:
getChildPlanItemInstancesin interfacePlanItemInstanceContainer- Returns:
- All child plan item instances that are not in a terminal state.
-
setChildPlanItemInstances
- Specified by:
setChildPlanItemInstancesin interfacePlanItemInstanceContainer- Parameters:
childPlanItemInstances- Sets the child plan item instances of this container.
-
getSatisfiedSentryPartInstances
- Specified by:
getSatisfiedSentryPartInstancesin interfaceEntityWithSentryPartInstances
-
setSatisfiedSentryPartInstances
public void setSatisfiedSentryPartInstances(List<SentryPartInstanceEntity> sentryPartInstanceEntities) - Specified by:
setSatisfiedSentryPartInstancesin interfaceEntityWithSentryPartInstances
-
loadVariableInstances
- Specified by:
loadVariableInstancesin classVariableScopeImpl
-
getParentVariableScope
- Specified by:
getParentVariableScopein classVariableScopeImpl
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointerin classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfoin classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariablein classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariablesin classVariableScopeImpl
-
createVariableInstance
- Overrides:
createVariableInstancein classVariableScopeImpl
-
updateVariableInstance
- Overrides:
updateVariableInstancein classVariableScopeImpl
-
isPropagateToHistoricVariable
protected boolean isPropagateToHistoricVariable()Description copied from class:VariableScopeImplReturn whether changes to the variables are propagated to the history storage.- Specified by:
isPropagateToHistoricVariablein classVariableScopeImpl
-
getVariableServiceConfiguration
- Specified by:
getVariableServiceConfigurationin classVariableScopeImpl
-
getCaseVariables
Description copied from interface:CaseInstanceReturns the case variables if requested in the case instance query- Specified by:
getCaseVariablesin interfaceCaseInstance
-
getLocalizedName
-
setLocalizedName
Description copied from interface:CaseInstanceSets an optional localized name for the case.- Specified by:
setLocalizedNamein interfaceCaseInstance
-
getQueryVariables
- Specified by:
getQueryVariablesin interfaceCaseInstanceEntity
-
setQueryVariables
-
getCaseDefinitionKey
- Specified by:
getCaseDefinitionKeyin interfaceCaseInstance
-
setCaseDefinitionKey
- Specified by:
setCaseDefinitionKeyin interfaceCaseInstanceEntity
-
getCaseDefinitionName
- Specified by:
getCaseDefinitionNamein interfaceCaseInstance
-
setCaseDefinitionName
- Specified by:
setCaseDefinitionNamein interfaceCaseInstanceEntity
-
getCaseDefinitionVersion
- Specified by:
getCaseDefinitionVersionin interfaceCaseInstance
-
setCaseDefinitionVersion
- Specified by:
setCaseDefinitionVersionin interfaceCaseInstanceEntity
-
getCaseDefinitionDeploymentId
- Specified by:
getCaseDefinitionDeploymentIdin interfaceCaseInstance
-
setCaseDefinitionDeploymentId
- Specified by:
setCaseDefinitionDeploymentIdin interfaceCaseInstanceEntity
-
toString
-