Class CaseDefinitionEntity
java.lang.Object
org.camunda.bpm.engine.impl.core.model.CoreModelElement
org.camunda.bpm.engine.impl.core.model.CoreActivity
org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity
org.camunda.bpm.engine.impl.cmmn.model.CmmnCaseDefinition
org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionEntity
- All Implemented Interfaces:
Serializable
,DbEntity
,HasDbRevision
,ResourceDefinitionEntity<CaseDefinitionEntity>
,CaseDefinition
,ResourceDefinition
public class CaseDefinitionEntity
extends CmmnCaseDefinition
implements CaseDefinition, ResourceDefinitionEntity<CaseDefinitionEntity>, DbEntity, HasDbRevision
- Author:
- Roman Smirnov
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected boolean
protected Integer
protected String
protected static final EnginePersistenceLogger
protected String
protected String
protected int
protected Map<String,
TaskDefinition> protected String
protected int
Fields inherited from class org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity
activities, activityBehavior, caseDefinition, cmmnElement, entryCriteria, exitCriteria, namedActivities, parent, resolvedBuiltInVariableListeners, resolvedVariableListeners, sentries, sentryMap
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
ioMapping
Fields inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
builtInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
category name which is derived from the targetNamespace attribute in the definitions elementThe deployment in which this definition is contained.The diagram resource name for this definition if existHistory time to live.getKey()
unique name for all versions this definitionReturns a representation of the object, as would be stored in the database.protected String
name ofthe resource
of this definitionint
int
The id of the tenant this definition belongs to.int
version of this definitionprotected CaseDefinitionEntity
loadCaseDefinition
(String caseDefinitionId) Returns the cached version if exists; does not update the entity from the database in that caseprotected CmmnExecution
protected void
void
setCategory
(String category) void
setDeploymentId
(String deploymentId) void
setDiagramResourceName
(String diagramResourceName) void
setHistoryTimeToLive
(Integer historyTimeToLive) void
protected void
setPreviousCaseDefinitionId
(String previousCaseDefinitionId) void
setResourceName
(String resourceName) void
setRevision
(int revision) void
setTaskDefinitions
(Map<String, TaskDefinition> taskDefinitions) void
setTenantId
(String tenantId) void
setVersion
(int version) toString()
void
updateModifiableFieldsFromEntity
(CaseDefinitionEntity updatingCaseDefinition) Updates all modifiable fields from another case definition entity.Methods inherited from class org.camunda.bpm.engine.impl.cmmn.model.CmmnCaseDefinition
createCaseInstance, createCaseInstance
Methods inherited from class org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity
addEntryCriteria, addExitCriteria, addSentry, createActivity, findActivity, getActivities, getActivityBehavior, getCaseDefinition, getChildActivity, getCmmnElement, getEntryCriteria, getExitCriteria, getParent, getSentries, getSentry, getVariableListeners, setActivityBehavior, setCaseDefinition, setCmmnElement, setEntryCriteria, setExitCriteria, setParent
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreActivity
createActivity, getIoMapping, setIoMapping
Methods inherited from class org.camunda.bpm.engine.impl.core.model.CoreModelElement
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setId, setName, setProperties, setProperty
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.repository.ResourceDefinition
getId, getName
Methods inherited from interface org.camunda.bpm.engine.impl.repository.ResourceDefinitionEntity
setId, setName
-
Field Details
-
LOG
-
revision
protected int revision -
category
-
key
-
version
protected int version -
deploymentId
-
resourceName
-
diagramResourceName
-
tenantId
-
historyTimeToLive
-
taskDefinitions
-
firstVersion
protected boolean firstVersion -
previousCaseDefinitionId
-
-
Constructor Details
-
CaseDefinitionEntity
public CaseDefinitionEntity()
-
-
Method Details
-
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
-
getCategory
Description copied from interface:ResourceDefinition
category name which is derived from the targetNamespace attribute in the definitions element- Specified by:
getCategory
in interfaceResourceDefinition
-
setCategory
- Specified by:
setCategory
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getKey
Description copied from interface:ResourceDefinition
unique name for all versions this definition- Specified by:
getKey
in interfaceResourceDefinition
-
setKey
- Specified by:
setKey
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getVersion
public int getVersion()Description copied from interface:ResourceDefinition
version of this definition- Specified by:
getVersion
in interfaceResourceDefinition
-
setVersion
public void setVersion(int version) - Specified by:
setVersion
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getDeploymentId
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfaceResourceDefinition
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getResourceName
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
setResourceName
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getDiagramResourceName
Description copied from interface:ResourceDefinition
The diagram resource name for this definition if exist- Specified by:
getDiagramResourceName
in interfaceResourceDefinition
-
setDiagramResourceName
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getTaskDefinitions
-
setTaskDefinitions
-
getTenantId
Description copied from interface:ResourceDefinition
The id of the tenant this definition belongs to. Can benull
if the definition belongs to no single tenant.- Specified by:
getTenantId
in interfaceResourceDefinition
-
setTenantId
- Specified by:
setTenantId
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getHistoryTimeToLive
Description copied from interface:ResourceDefinition
History time to live. Is taken into account in history cleanup.- Specified by:
getHistoryTimeToLive
in interfaceResourceDefinition
-
setHistoryTimeToLive
- Specified by:
setHistoryTimeToLive
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
getPreviousDefinition
- Specified by:
getPreviousDefinition
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
-
loadCaseDefinition
Returns the cached version if exists; does not update the entity from the database in that case -
getPreviousCaseDefinitionId
-
setPreviousCaseDefinitionId
-
resetPreviousCaseDefinitionId
protected void resetPreviousCaseDefinitionId() -
ensurePreviousCaseDefinitionIdInitialized
protected void ensurePreviousCaseDefinitionIdInitialized() -
newCaseInstance
- Overrides:
newCaseInstance
in classCmmnCaseDefinition
-
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
-
toString
- Overrides:
toString
in classCoreActivity
-
updateModifiableFieldsFromEntity
Updates all modifiable fields from another case definition entity.- Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<CaseDefinitionEntity>
- Parameters:
updatingCaseDefinition
-
-