Class PlanItemInstanceEntityImpl
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.PlanItemInstanceEntityImpl
- All Implemented Interfaces:
Serializable
,DelegatePlanItemInstance
,PlanItemInstance
,CountingPlanItemInstanceEntity
,EntityWithSentryPartInstances
,PlanItemInstanceContainer
,PlanItemInstanceEntity
,VariableContainer
,HasRevision
,Entity
,VariableScope
public class PlanItemInstanceEntityImpl
extends AbstractCmmnEngineVariableScopeEntity
implements PlanItemInstanceEntity, CountingPlanItemInstanceEntity
- Author:
- Joram Barrez
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected List<PlanItemInstanceEntity>
protected boolean
protected Date
protected boolean
protected Date
protected FlowableListener
protected PlanItemInstanceLifecycleListener
protected String
protected String
protected Date
protected String
protected String
protected Date
protected String
protected boolean
protected Date
protected Date
protected Date
protected Date
protected Date
protected Date
protected String
protected String
protected Date
protected PlanItem
protected String
protected String
protected boolean
protected String
protected String
protected List<SentryPartInstanceEntity>
protected int
protected String
protected PlanItemInstanceEntity
protected String
protected String
protected String
protected Date
protected int
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
ConstructorsConstructorDescriptionPlanItemInstanceEntityImpl
(HistoricPlanItemInstance historicPlanItemInstance) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addLoggingSessionInfo
(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) protected void
createVariableLocal
(String variableName, Object value) only called when a new variable is created on this variable scope.getName()
Returns a representation of the object, as would be stored in the database.int
protected VariableInstanceEntity
getSpecificVariable
(String variableName) protected List<VariableInstanceEntity>
getSpecificVariables
(Collection<String> variableNames) getState()
int
protected VariableServiceConfiguration
protected void
initializeVariableInstanceBackPointer
(VariableInstance variableInstance) boolean
boolean
boolean
protected boolean
Return whether changes to the variables are propagated to the history storage.boolean
isStage()
protected Collection<VariableInstanceEntity>
void
setCaseDefinitionId
(String caseDefinitionId) void
setCaseInstanceId
(String caseInstanceId) void
setChildPlanItemInstances
(List<PlanItemInstanceEntity> childPlanItemInstances) void
setCompletable
(boolean completable) void
setCompletedTime
(Date completedTime) void
setCountEnabled
(boolean countEnabled) void
setCreateTime
(Date createTime) void
setCurrentLifecycleListener
(PlanItemInstanceLifecycleListener lifecycleListener, FlowableListener flowableListener) void
setDerivedCaseDefinitionId
(String derivedCaseDefinitionId) void
setElementId
(String elementId) void
setEndedTime
(Date endedTime) void
setEntryCriterionId
(String entryCriterionId) void
setExitCriterionId
(String exitCriterionId) void
setExitTime
(Date exitTime) void
setExtraValue
(String extraValue) void
setFormKey
(String formKey) void
setLastAvailableTime
(Date lastAvailableTime) void
setLastDisabledTime
(Date lastDisabledTime) void
setLastEnabledTime
(Date lastEnabledTime) void
setLastStartedTime
(Date lastStartedTime) void
setLastSuspendedTime
(Date lastSuspendedTime) void
setLastUnavailableTime
(Date lastUnavailableTime) void
setLocalizedName
(String localizedName) Sets an optional localized name for the plan itemvoid
void
setOccurredTime
(Date occurredTime) void
setPlanItem
(PlanItem planItem) void
setPlanItemDefinitionId
(String planItemDefinitionId) void
setPlanItemDefinitionType
(String planItemDefinitionType) void
setPlannedForActivationInMigration
(boolean plannedForActivationInMigration) void
setReferenceId
(String referenceId) void
setReferenceType
(String referenceType) void
setSatisfiedSentryPartInstances
(List<SentryPartInstanceEntity> satisfiedSentryPartInstances) void
setSentryPartInstanceCount
(int sentryPartInstanceCount) void
setStage
(boolean isStage) void
setStageInstanceId
(String stageInstanceId) void
setStagePlanItemInstance
(PlanItemInstanceEntity stagePlanItemInstance) void
setStartTime
(Date startTime) void
setStartUserId
(String startUserId) void
void
setTenantId
(String tenantId) void
setTerminatedTime
(Date terminatedTime) void
setVariableCount
(int variableCount) Create a snapshot read only delegate plan item instance of this delegate plan item instance.protected boolean
storeVariableLocal
(String variableName) toString()
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, createVariableInstance, 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, updateVariableInstance
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.delegate.DelegatePlanItemInstance
getPlanItemDefinition
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.cmmn.api.runtime.PlanItemInstance
getId
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
-
caseDefinitionId
-
derivedCaseDefinitionId
-
caseInstanceId
-
stageInstanceId
-
isStage
protected boolean isStage -
elementId
-
planItemDefinitionId
-
planItemDefinitionType
-
name
-
state
-
createTime
-
lastAvailableTime
-
lastEnabledTime
-
lastDisabledTime
-
lastStartedTime
-
lastSuspendedTime
-
completedTime
-
occurredTime
-
terminatedTime
-
exitTime
-
endedTime
-
startUserId
-
referenceId
-
referenceType
-
completable
protected boolean completable -
entryCriterionId
-
exitCriterionId
-
extraValue
-
tenantId
-
countEnabled
protected boolean countEnabled -
variableCount
protected int variableCount -
sentryPartInstanceCount
protected int sentryPartInstanceCount -
planItem
-
childPlanItemInstances
-
stagePlanItemInstance
-
satisfiedSentryPartInstances
-
localizedName
-
currentLifecycleListener
-
currentFlowableListener
-
plannedForActivationInMigration
protected boolean plannedForActivationInMigration
-
-
Constructor Details
-
PlanItemInstanceEntityImpl
public PlanItemInstanceEntityImpl() -
PlanItemInstanceEntityImpl
-
-
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
-
snapshotReadOnly
Description copied from interface:DelegatePlanItemInstance
Create a snapshot read only delegate plan item instance of this delegate plan item instance.- Specified by:
snapshotReadOnly
in interfaceDelegatePlanItemInstance
- Returns:
- a
ReadOnlyDelegatePlanItemInstance
-
getPlanItem
- Specified by:
getPlanItem
in interfaceDelegatePlanItemInstance
-
getCaseDefinitionId
- Specified by:
getCaseDefinitionId
in interfacePlanItemInstance
-
setCaseDefinitionId
- Specified by:
setCaseDefinitionId
in interfaceDelegatePlanItemInstance
-
getDerivedCaseDefinitionId
- Specified by:
getDerivedCaseDefinitionId
in interfacePlanItemInstance
-
setDerivedCaseDefinitionId
- Specified by:
setDerivedCaseDefinitionId
in interfaceDelegatePlanItemInstance
-
getCaseInstanceId
- Specified by:
getCaseInstanceId
in interfacePlanItemInstance
-
setCaseInstanceId
- Specified by:
setCaseInstanceId
in interfaceDelegatePlanItemInstance
-
getStageInstanceId
- Specified by:
getStageInstanceId
in interfacePlanItemInstance
-
setStageInstanceId
- Specified by:
setStageInstanceId
in interfaceDelegatePlanItemInstance
-
isStage
public boolean isStage()- Specified by:
isStage
in interfacePlanItemInstance
-
setStage
public void setStage(boolean isStage) - Specified by:
setStage
in interfaceDelegatePlanItemInstance
-
getElementId
- Specified by:
getElementId
in interfacePlanItemInstance
-
setElementId
- Specified by:
setElementId
in interfaceDelegatePlanItemInstance
-
getPlanItemDefinitionId
- Specified by:
getPlanItemDefinitionId
in interfacePlanItemInstance
-
setPlanItemDefinitionId
- Specified by:
setPlanItemDefinitionId
in interfaceDelegatePlanItemInstance
-
getPlanItemDefinitionType
- Specified by:
getPlanItemDefinitionType
in interfacePlanItemInstance
-
setPlanItemDefinitionType
- Specified by:
setPlanItemDefinitionType
in interfaceDelegatePlanItemInstance
-
getName
- Specified by:
getName
in interfacePlanItemInstance
-
setName
- Specified by:
setName
in interfaceDelegatePlanItemInstance
-
getState
- Specified by:
getState
in interfacePlanItemInstance
-
setState
- Specified by:
setState
in interfaceDelegatePlanItemInstance
-
getCreateTime
- Specified by:
getCreateTime
in interfacePlanItemInstance
-
getStartTime
- Specified by:
getStartTime
in interfacePlanItemInstance
-
setStartTime
- Specified by:
setStartTime
in interfaceDelegatePlanItemInstance
-
setCreateTime
- Specified by:
setCreateTime
in interfaceDelegatePlanItemInstance
-
getLastAvailableTime
- Specified by:
getLastAvailableTime
in interfacePlanItemInstance
-
setLastAvailableTime
- Specified by:
setLastAvailableTime
in interfaceDelegatePlanItemInstance
-
getLastEnabledTime
- Specified by:
getLastEnabledTime
in interfacePlanItemInstance
-
setLastEnabledTime
- Specified by:
setLastEnabledTime
in interfaceDelegatePlanItemInstance
-
getLastDisabledTime
- Specified by:
getLastDisabledTime
in interfacePlanItemInstance
-
setLastDisabledTime
- Specified by:
setLastDisabledTime
in interfaceDelegatePlanItemInstance
-
getLastStartedTime
- Specified by:
getLastStartedTime
in interfacePlanItemInstance
-
setLastStartedTime
- Specified by:
setLastStartedTime
in interfaceDelegatePlanItemInstance
-
getLastSuspendedTime
- Specified by:
getLastSuspendedTime
in interfacePlanItemInstance
-
setLastSuspendedTime
- Specified by:
setLastSuspendedTime
in interfaceDelegatePlanItemInstance
-
getCompletedTime
- Specified by:
getCompletedTime
in interfacePlanItemInstance
-
setCompletedTime
- Specified by:
setCompletedTime
in interfaceDelegatePlanItemInstance
-
getOccurredTime
- Specified by:
getOccurredTime
in interfacePlanItemInstance
-
setOccurredTime
- Specified by:
setOccurredTime
in interfaceDelegatePlanItemInstance
-
getTerminatedTime
- Specified by:
getTerminatedTime
in interfacePlanItemInstance
-
setTerminatedTime
- Specified by:
setTerminatedTime
in interfaceDelegatePlanItemInstance
-
getExitTime
- Specified by:
getExitTime
in interfacePlanItemInstance
-
setExitTime
- Specified by:
setExitTime
in interfaceDelegatePlanItemInstance
-
getEndedTime
- Specified by:
getEndedTime
in interfacePlanItemInstance
-
setEndedTime
- Specified by:
setEndedTime
in interfaceDelegatePlanItemInstance
-
setPlanItem
-
getStagePlanItemInstance
-
setStagePlanItemInstance
-
getStartUserId
- Specified by:
getStartUserId
in interfacePlanItemInstance
-
setStartUserId
- Specified by:
setStartUserId
in interfaceDelegatePlanItemInstance
-
getReferenceId
- Specified by:
getReferenceId
in interfacePlanItemInstance
-
setReferenceId
- Specified by:
setReferenceId
in interfaceDelegatePlanItemInstance
-
getReferenceType
- Specified by:
getReferenceType
in interfacePlanItemInstance
-
setReferenceType
- Specified by:
setReferenceType
in interfaceDelegatePlanItemInstance
-
isCompletable
public boolean isCompletable()- Specified by:
isCompletable
in interfacePlanItemInstance
-
setCompletable
public void setCompletable(boolean completable) - Specified by:
setCompletable
in interfaceDelegatePlanItemInstance
-
getEntryCriterionId
- Specified by:
getEntryCriterionId
in interfacePlanItemInstance
-
setEntryCriterionId
- Specified by:
setEntryCriterionId
in interfaceDelegatePlanItemInstance
-
getExitCriterionId
- Specified by:
getExitCriterionId
in interfacePlanItemInstance
-
setExitCriterionId
- Specified by:
setExitCriterionId
in interfaceDelegatePlanItemInstance
-
getFormKey
- Specified by:
getFormKey
in interfacePlanItemInstance
-
setFormKey
- Specified by:
setFormKey
in interfaceDelegatePlanItemInstance
-
getExtraValue
- Specified by:
getExtraValue
in interfacePlanItemInstance
-
setExtraValue
- Specified by:
setExtraValue
in interfaceDelegatePlanItemInstance
-
getTenantId
- Specified by:
getTenantId
in interfacePlanItemInstance
- Specified by:
getTenantId
in interfaceVariableContainer
-
setTenantId
- Specified by:
setTenantId
in interfaceDelegatePlanItemInstance
-
setChildPlanItemInstances
- Specified by:
setChildPlanItemInstances
in interfacePlanItemInstanceContainer
- Parameters:
childPlanItemInstances
- Sets the child plan item instances of this container.
-
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.
-
getStagePlanItemInstanceEntity
- Specified by:
getStagePlanItemInstanceEntity
in interfacePlanItemInstanceEntity
-
getSatisfiedSentryPartInstances
- Specified by:
getSatisfiedSentryPartInstances
in interfaceEntityWithSentryPartInstances
-
setSatisfiedSentryPartInstances
public void setSatisfiedSentryPartInstances(List<SentryPartInstanceEntity> satisfiedSentryPartInstances) - Specified by:
setSatisfiedSentryPartInstances
in interfaceEntityWithSentryPartInstances
-
loadVariableInstances
- Specified by:
loadVariableInstances
in classVariableScopeImpl
-
getParentVariableScope
- Specified by:
getParentVariableScope
in interfacePlanItemInstanceEntity
- Specified by:
getParentVariableScope
in classVariableScopeImpl
-
initializeVariableInstanceBackPointer
- Specified by:
initializeVariableInstanceBackPointer
in classVariableScopeImpl
-
storeVariableLocal
- Overrides:
storeVariableLocal
in classVariableScopeImpl
-
addLoggingSessionInfo
protected void addLoggingSessionInfo(com.fasterxml.jackson.databind.node.ObjectNode loggingNode) - Specified by:
addLoggingSessionInfo
in classVariableScopeImpl
-
createVariableLocal
Description copied from class:VariableScopeImpl
only called when a new variable is created on this variable scope. This method is also responsible for propagating the creation of this variable to the history.- Overrides:
createVariableLocal
in classVariableScopeImpl
-
getSpecificVariable
- Specified by:
getSpecificVariable
in classVariableScopeImpl
-
getSpecificVariables
- Specified by:
getSpecificVariables
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
-
isCountEnabled
public boolean isCountEnabled()- Specified by:
isCountEnabled
in interfaceCountingPlanItemInstanceEntity
-
setCountEnabled
public void setCountEnabled(boolean countEnabled) - Specified by:
setCountEnabled
in interfaceCountingPlanItemInstanceEntity
-
getVariableCount
public int getVariableCount()- Specified by:
getVariableCount
in interfaceCountingPlanItemInstanceEntity
-
setVariableCount
public void setVariableCount(int variableCount) - Specified by:
setVariableCount
in interfaceCountingPlanItemInstanceEntity
-
getSentryPartInstanceCount
public int getSentryPartInstanceCount()- Specified by:
getSentryPartInstanceCount
in interfaceCountingPlanItemInstanceEntity
-
setSentryPartInstanceCount
public void setSentryPartInstanceCount(int sentryPartInstanceCount) - Specified by:
setSentryPartInstanceCount
in interfaceCountingPlanItemInstanceEntity
-
getCurrentFlowableListener
- Specified by:
getCurrentFlowableListener
in interfaceDelegatePlanItemInstance
-
getCurrentLifecycleListener
- Specified by:
getCurrentLifecycleListener
in interfaceDelegatePlanItemInstance
-
setCurrentLifecycleListener
public void setCurrentLifecycleListener(PlanItemInstanceLifecycleListener lifecycleListener, FlowableListener flowableListener) - Specified by:
setCurrentLifecycleListener
in interfaceDelegatePlanItemInstance
-
getLocalizedName
-
setLocalizedName
Description copied from interface:PlanItemInstance
Sets an optional localized name for the plan item- Specified by:
setLocalizedName
in interfacePlanItemInstance
-
isPlannedForActivationInMigration
public boolean isPlannedForActivationInMigration()- Specified by:
isPlannedForActivationInMigration
in interfacePlanItemInstanceEntity
-
setPlannedForActivationInMigration
public void setPlannedForActivationInMigration(boolean plannedForActivationInMigration) - Specified by:
setPlannedForActivationInMigration
in interfacePlanItemInstanceEntity
-
toString
-