public class CaseDefinitionEntity extends CmmnCaseDefinition implements CaseDefinition, ResourceDefinitionEntity<CaseDefinitionEntity>, DbEntity, HasDbRevision
Modifier and Type | Field and Description |
---|---|
protected String |
category |
protected String |
deploymentId |
protected String |
diagramResourceName |
protected boolean |
firstVersion |
protected Integer |
historyTimeToLive |
protected String |
key |
protected static EnginePersistenceLogger |
LOG |
protected String |
previousCaseDefinitionId |
protected String |
resourceName |
protected int |
revision |
protected Map<String,TaskDefinition> |
taskDefinitions |
protected String |
tenantId |
protected int |
version |
activities, activityBehavior, caseDefinition, cmmnElement, entryCriteria, exitCriteria, namedActivities, parent, resolvedBuiltInVariableListeners, resolvedVariableListeners, sentries, sentryMap
ioMapping
builtInListeners, builtInVariableListeners, id, listeners, name, properties, variableListeners
Constructor and Description |
---|
CaseDefinitionEntity() |
Modifier and Type | Method and Description |
---|---|
protected void |
ensurePreviousCaseDefinitionIdInitialized() |
String |
getCategory()
category name which is derived from the targetNamespace attribute in the definitions element
|
String |
getDeploymentId()
The deployment in which this definition is contained.
|
String |
getDiagramResourceName()
The diagram resource name for this definition if exist
|
Integer |
getHistoryTimeToLive()
History time to live.
|
String |
getKey()
unique name for all versions this definition
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
protected String |
getPreviousCaseDefinitionId() |
CaseDefinitionEntity |
getPreviousDefinition() |
String |
getResourceName()
name of
the resource of this definition |
int |
getRevision() |
int |
getRevisionNext() |
Map<String,TaskDefinition> |
getTaskDefinitions() |
String |
getTenantId()
The id of the tenant this definition belongs to.
|
int |
getVersion()
version of this definition
|
protected CaseDefinitionEntity |
loadCaseDefinition(String caseDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that case
|
protected CmmnExecution |
newCaseInstance() |
protected void |
resetPreviousCaseDefinitionId() |
void |
setCategory(String category) |
void |
setDeploymentId(String deploymentId) |
void |
setDiagramResourceName(String diagramResourceName) |
void |
setHistoryTimeToLive(Integer historyTimeToLive) |
void |
setKey(String key) |
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) |
String |
toString() |
void |
updateModifiableFieldsFromEntity(CaseDefinitionEntity updatingCaseDefinition)
Updates all modifiable fields from another case definition entity.
|
createCaseInstance, createCaseInstance
addEntryCriteria, addExitCriteria, addSentry, createActivity, findActivity, getActivities, getActivityBehavior, getCaseDefinition, getChildActivity, getCmmnElement, getEntryCriteria, getExitCriteria, getParent, getSentries, getSentry, getVariableListeners, setActivityBehavior, setCaseDefinition, setCmmnElement, setEntryCriteria, setExitCriteria, setParent
createActivity, getIoMapping, setIoMapping
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setId, setName
getId, getName
protected static final EnginePersistenceLogger LOG
protected int revision
protected String category
protected String key
protected int version
protected String deploymentId
protected String resourceName
protected String diagramResourceName
protected String tenantId
protected Integer historyTimeToLive
protected Map<String,TaskDefinition> taskDefinitions
protected boolean firstVersion
protected String previousCaseDefinitionId
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public String getCategory()
ResourceDefinition
getCategory
in interface ResourceDefinition
public void setCategory(String category)
setCategory
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public String getKey()
ResourceDefinition
getKey
in interface ResourceDefinition
public void setKey(String key)
setKey
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public int getVersion()
ResourceDefinition
getVersion
in interface ResourceDefinition
public void setVersion(int version)
setVersion
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public String getDeploymentId()
ResourceDefinition
getDeploymentId
in interface ResourceDefinition
public void setDeploymentId(String deploymentId)
setDeploymentId
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public String getResourceName()
ResourceDefinition
the resource
of this definitiongetResourceName
in interface ResourceDefinition
public void setResourceName(String resourceName)
setResourceName
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public String getDiagramResourceName()
ResourceDefinition
getDiagramResourceName
in interface ResourceDefinition
public void setDiagramResourceName(String diagramResourceName)
setDiagramResourceName
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public Map<String,TaskDefinition> getTaskDefinitions()
public void setTaskDefinitions(Map<String,TaskDefinition> taskDefinitions)
public String getTenantId()
ResourceDefinition
null
if the definition belongs to no single tenant.getTenantId
in interface ResourceDefinition
public void setTenantId(String tenantId)
setTenantId
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
public Integer getHistoryTimeToLive()
ResourceDefinition
getHistoryTimeToLive
in interface ResourceDefinition
public void setHistoryTimeToLive(Integer historyTimeToLive)
public CaseDefinitionEntity getPreviousDefinition()
getPreviousDefinition
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
protected CaseDefinitionEntity loadCaseDefinition(String caseDefinitionId)
protected String getPreviousCaseDefinitionId()
protected void setPreviousCaseDefinitionId(String previousCaseDefinitionId)
protected void resetPreviousCaseDefinitionId()
protected void ensurePreviousCaseDefinitionIdInitialized()
protected CmmnExecution newCaseInstance()
newCaseInstance
in class CmmnCaseDefinition
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public String toString()
toString
in class CoreActivity
public void updateModifiableFieldsFromEntity(CaseDefinitionEntity updatingCaseDefinition)
updateModifiableFieldsFromEntity
in interface ResourceDefinitionEntity<CaseDefinitionEntity>
updatingCaseDefinition
- Copyright © 2017. All rights reserved.