org.camunda.bpm.engine.impl.cmmn.entity.repository
Class CaseDefinitionEntity

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.model.CoreModelElement
      extended by org.camunda.bpm.engine.impl.core.model.CoreActivity
          extended by org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity
              extended by org.camunda.bpm.engine.impl.cmmn.model.CmmnCaseDefinition
                  extended by org.camunda.bpm.engine.impl.cmmn.entity.repository.CaseDefinitionEntity
All Implemented Interfaces:
Serializable, DbEntity, HasDbRevision, ResourceDefinitionEntity, CaseDefinition, ResourceDefinition

public class CaseDefinitionEntity
extends CmmnCaseDefinition
implements CaseDefinition, ResourceDefinitionEntity, DbEntity, HasDbRevision

Author:
Roman Smirnov
See Also:
Serialized Form

Field Summary
protected  String category
           
protected  String deploymentId
           
protected  String diagramResourceName
           
protected  boolean firstVersion
           
protected  String key
           
protected  String previousCaseDefinitionId
           
protected  String resourceName
           
protected  int revision
           
protected  Map<String,TaskDefinition> taskDefinitions
           
protected  int version
           
 
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
CaseDefinitionEntity()
           
 
Method Summary
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
 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 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()
           
 
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.impl.repository.ResourceDefinitionEntity
setId, setName
 
Methods inherited from interface org.camunda.bpm.engine.repository.ResourceDefinition
getId, getName
 
Methods inherited from interface org.camunda.bpm.engine.impl.db.DbEntity
getId, setId
 

Field Detail

revision

protected int revision

category

protected String category

key

protected String key

version

protected int version

deploymentId

protected String deploymentId

resourceName

protected String resourceName

diagramResourceName

protected String diagramResourceName

taskDefinitions

protected Map<String,TaskDefinition> taskDefinitions

firstVersion

protected boolean firstVersion

previousCaseDefinitionId

protected String previousCaseDefinitionId
Constructor Detail

CaseDefinitionEntity

public CaseDefinitionEntity()
Method Detail

getRevision

public int getRevision()
Specified by:
getRevision in interface HasDbRevision

setRevision

public void setRevision(int revision)
Specified by:
setRevision in interface HasDbRevision

getRevisionNext

public int getRevisionNext()
Specified by:
getRevisionNext in interface HasDbRevision

getCategory

public String getCategory()
Description copied from interface: ResourceDefinition
category name which is derived from the targetNamespace attribute in the definitions element

Specified by:
getCategory in interface ResourceDefinition

setCategory

public void setCategory(String category)
Specified by:
setCategory in interface ResourceDefinitionEntity

getKey

public String getKey()
Description copied from interface: ResourceDefinition
unique name for all versions this definition

Specified by:
getKey in interface ResourceDefinition

setKey

public void setKey(String key)
Specified by:
setKey in interface ResourceDefinitionEntity

getVersion

public int getVersion()
Description copied from interface: ResourceDefinition
version of this definition

Specified by:
getVersion in interface ResourceDefinition

setVersion

public void setVersion(int version)
Specified by:
setVersion in interface ResourceDefinitionEntity

getDeploymentId

public String getDeploymentId()
Description copied from interface: ResourceDefinition
The deployment in which this definition is contained.

Specified by:
getDeploymentId in interface ResourceDefinition

setDeploymentId

public void setDeploymentId(String deploymentId)
Specified by:
setDeploymentId in interface ResourceDefinitionEntity

getResourceName

public String getResourceName()
Description copied from interface: ResourceDefinition
name of the resource of this definition

Specified by:
getResourceName in interface ResourceDefinition

setResourceName

public void setResourceName(String resourceName)
Specified by:
setResourceName in interface ResourceDefinitionEntity

getDiagramResourceName

public String getDiagramResourceName()
Description copied from interface: ResourceDefinition
The diagram resource name for this definition if exist

Specified by:
getDiagramResourceName in interface ResourceDefinition

setDiagramResourceName

public void setDiagramResourceName(String diagramResourceName)
Specified by:
setDiagramResourceName in interface ResourceDefinitionEntity

getTaskDefinitions

public Map<String,TaskDefinition> getTaskDefinitions()

setTaskDefinitions

public void setTaskDefinitions(Map<String,TaskDefinition> taskDefinitions)

getPreviousDefinition

public CaseDefinitionEntity getPreviousDefinition()
Specified by:
getPreviousDefinition in interface ResourceDefinitionEntity

loadCaseDefinition

protected CaseDefinitionEntity loadCaseDefinition(String caseDefinitionId)
Returns the cached version if exists; does not update the entity from the database in that case


getPreviousCaseDefinitionId

protected String getPreviousCaseDefinitionId()

setPreviousCaseDefinitionId

protected void setPreviousCaseDefinitionId(String previousCaseDefinitionId)

resetPreviousCaseDefinitionId

protected void resetPreviousCaseDefinitionId()

ensurePreviousCaseDefinitionIdInitialized

protected void ensurePreviousCaseDefinitionIdInitialized()

newCaseInstance

protected CmmnExecution newCaseInstance()
Overrides:
newCaseInstance in class CmmnCaseDefinition

getPersistentState

public Object 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 interface DbEntity

toString

public String toString()
Overrides:
toString in class CoreActivity

getTenantId

public String getTenantId()
Description copied from interface: ResourceDefinition
The id of the tenant this definition belongs to. Can be null if the definition belongs to no single tenant.

Specified by:
getTenantId in interface ResourceDefinition

setTenantId

public void setTenantId(String tenantId)
Specified by:
setTenantId in interface ResourceDefinitionEntity


Copyright © 2016 camunda services GmbH. All rights reserved.