Class ProcessDefinitionEntity
java.lang.Object
org.camunda.bpm.engine.impl.core.model.CoreModelElement
org.camunda.bpm.engine.impl.core.model.CoreActivity
org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl
org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity
- All Implemented Interfaces:
Serializable
,DbEntity
,HasDbRevision
,PvmProcessDefinition
,PvmProcessElement
,PvmScope
,ReadOnlyProcessDefinition
,ResourceDefinitionEntity<ProcessDefinitionEntity>
,ProcessDefinition
,ResourceDefinition
- Direct Known Subclasses:
ProcessDefinitionStatisticsEntity
public class ProcessDefinitionEntity
extends ProcessDefinitionImpl
implements ProcessDefinition, ResourceDefinitionEntity<ProcessDefinitionEntity>, DbEntity, HasDbRevision
- Author:
- Tom Baeyens, Daniel Meyer
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
ScopeImpl.BacklogErrorCallback
-
Field Summary
Modifier and TypeFieldDescriptionprotected Set<Expression>
protected Set<Expression>
protected String
protected List<IdentityLinkEntity>
protected String
protected String
protected boolean
protected boolean
protected Integer
protected Integer
protected boolean
protected boolean
protected boolean
protected String
protected static final EnginePersistenceLogger
protected String
protected String
protected int
protected FormDefinition
protected StartFormHandler
protected int
protected Map<String,
TaskDefinition> protected String
protected int
protected String
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl
description, initial, initialActivityStacks, laneSets, name, participantProcess
Fields inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
BACKLOG, eventActivities, flowActivities, isSubProcessScope, namedFlowActivities, processDefinition
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, properties, variableListeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addIdentityLink
(String userId, String groupId) createProcessInstance
(String businessKey) createProcessInstance
(String businessKey, String caseInstanceId) createProcessInstance
(String businessKey, String caseInstanceId, ActivityImpl initial) createProcessInstance
(String businessKey, ActivityImpl initial) void
deleteIdentityLink
(String userId, String groupId) protected void
protected void
category name which is derived from the targetNamespace attribute in the definitions elementThe deployment in which this definition is contained.description of this processThe diagram resource name for this definition if existboolean
History time to live.getKey()
unique name for all versions this definitionReturns a representation of the object, as would be stored in the database.name ofthe resource
of this definitionint
int
int
The id of the tenant this definition belongs to.int
version of this definitionVersion tag of the process definition.boolean
Does this process definition has astart form key
.boolean
boolean
Returns true if the process definition is startable in Tasklist.boolean
Returns true if the process definition is in suspended state.protected ProcessDefinitionEntity
loadProcessDefinition
(String processDefinitionId) Returns the cached version if exists; does not update the entity from the database in that caseprotected PvmExecutionImpl
protected void
void
setCategory
(String category) void
setDeploymentId
(String deploymentId) void
setDiagramResourceName
(String diagramResourceName) void
setGraphicalNotationDefined
(boolean isGraphicalNotationDefined) void
setHasStartFormKey
(boolean hasStartFormKey) void
setHistoryLevel
(Integer historyLevel) void
setHistoryTimeToLive
(Integer historyTimeToLive) void
void
protected void
setPreviousProcessDefinitionId
(String previousProcessDefinitionId) void
setResourceName
(String resourceName) void
setRevision
(int revision) void
setStartableInTasklist
(boolean isStartableInTasklist) void
setStartFormDefinition
(FormDefinition startFormDefinition) void
setStartFormHandler
(StartFormHandler startFormHandler) void
setStartFormKey
(boolean hasStartFormKey) void
setSuspensionState
(int suspensionState) void
setTaskDefinitions
(Map<String, TaskDefinition> taskDefinitions) void
setTenantId
(String tenantId) void
setVersion
(int version) void
setVersionTag
(String versionTag) toString()
void
updateModifiableFieldsFromEntity
(ProcessDefinitionEntity updatingProcessDefinition) Updates all modifiable fields from another process definition entity.Methods inherited from class org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl
addLaneSet, createProcessInstanceForInitial, ensureDefaultInitialExists, getActivityBehavior, getEventScope, getFlowScope, getInitial, getInitialActivityStack, getInitialActivityStack, getLaneForId, getLaneSets, getLevelOfSubprocessScope, getParticipantProcess, isScope, isSubProcessScope, setInitial, setParticipantProcess
Methods inherited from class org.camunda.bpm.engine.impl.pvm.process.ScopeImpl
addExecutionListener, addExecutionListener, addToBacklog, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getBacklogErrorCallbacks, getChildActivity, getEventActivities, getExecutionListeners, getExecutionListeners, getProcessDefinition, isAncestorFlowScopeOf, isBacklogEmpty, setSubProcessScope
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, 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.pvm.PvmProcessElement
getId, getProcessDefinition, getProperties, getProperty
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.PvmScope
findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.ReadOnlyProcessDefinition
getName
Methods inherited from interface org.camunda.bpm.engine.repository.ResourceDefinition
getId, getName
Methods inherited from interface org.camunda.bpm.engine.impl.repository.ResourceDefinitionEntity
setName
-
Field Details
-
LOG
-
key
-
revision
protected int revision -
version
protected int version -
category
-
deploymentId
-
resourceName
-
historyLevel
-
startFormHandler
-
startFormDefinition
-
diagramResourceName
-
isGraphicalNotationDefined
protected boolean isGraphicalNotationDefined -
taskDefinitions
-
hasStartFormKey
protected boolean hasStartFormKey -
suspensionState
protected int suspensionState -
tenantId
-
versionTag
-
historyTimeToLive
-
isIdentityLinksInitialized
protected boolean isIdentityLinksInitialized -
definitionIdentityLinkEntities
-
candidateStarterUserIdExpressions
-
candidateStarterGroupIdExpressions
-
isStartableInTasklist
protected boolean isStartableInTasklist -
firstVersion
protected boolean firstVersion -
previousProcessDefinitionId
-
-
Constructor Details
-
ProcessDefinitionEntity
public ProcessDefinitionEntity()
-
-
Method Details
-
ensureNotSuspended
protected void ensureNotSuspended() -
createProcessInstance
- Specified by:
createProcessInstance
in interfacePvmProcessDefinition
- Overrides:
createProcessInstance
in classProcessDefinitionImpl
-
createProcessInstance
- Specified by:
createProcessInstance
in interfacePvmProcessDefinition
- Overrides:
createProcessInstance
in classProcessDefinitionImpl
-
createProcessInstance
- Specified by:
createProcessInstance
in interfacePvmProcessDefinition
- Overrides:
createProcessInstance
in classProcessDefinitionImpl
-
createProcessInstance
- Overrides:
createProcessInstance
in classProcessDefinitionImpl
-
newProcessInstance
- Overrides:
newProcessInstance
in classProcessDefinitionImpl
-
createProcessInstance
public ExecutionEntity createProcessInstance(String businessKey, String caseInstanceId, ActivityImpl initial) - Overrides:
createProcessInstance
in classProcessDefinitionImpl
-
addIdentityLink
-
deleteIdentityLink
-
getIdentityLinks
-
toString
- Overrides:
toString
in classProcessDefinitionImpl
-
updateModifiableFieldsFromEntity
Updates all modifiable fields from another process definition entity.- Specified by:
updateModifiableFieldsFromEntity
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
- Parameters:
updatingProcessDefinition
-
-
getPreviousDefinition
- Specified by:
getPreviousDefinition
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
-
loadProcessDefinition
Returns the cached version if exists; does not update the entity from the database in that case -
getPreviousProcessDefinitionId
-
resetPreviousProcessDefinitionId
protected void resetPreviousProcessDefinitionId() -
setPreviousProcessDefinitionId
-
ensurePreviousProcessDefinitionIdInitialized
protected void ensurePreviousProcessDefinitionIdInitialized() -
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
-
getKey
Description copied from interface:ResourceDefinition
unique name for all versions this definition- Specified by:
getKey
in interfaceResourceDefinition
-
setKey
- Specified by:
setKey
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
-
getDescription
Description copied from interface:ProcessDefinition
description of this process- Specified by:
getDescription
in interfaceProcessDefinition
- Specified by:
getDescription
in interfaceReadOnlyProcessDefinition
- Overrides:
getDescription
in classProcessDefinitionImpl
-
getDeploymentId
Description copied from interface:ResourceDefinition
The deployment in which this definition is contained.- Specified by:
getDeploymentId
in interfacePvmProcessDefinition
- Specified by:
getDeploymentId
in interfaceResourceDefinition
- Overrides:
getDeploymentId
in classProcessDefinitionImpl
-
setDeploymentId
- Specified by:
setDeploymentId
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
-
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<ProcessDefinitionEntity>
-
setId
- Specified by:
setId
in interfaceDbEntity
- Specified by:
setId
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
- Overrides:
setId
in classCoreModelElement
-
getResourceName
Description copied from interface:ResourceDefinition
name ofthe resource
of this definition- Specified by:
getResourceName
in interfaceResourceDefinition
-
setResourceName
- Specified by:
setResourceName
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
-
getHistoryLevel
-
setHistoryLevel
-
getStartFormHandler
-
setStartFormHandler
-
getStartFormDefinition
-
setStartFormDefinition
-
getTaskDefinitions
-
setTaskDefinitions
-
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<ProcessDefinitionEntity>
-
getDiagramResourceName
Description copied from interface:ResourceDefinition
The diagram resource name for this definition if exist- Specified by:
getDiagramResourceName
in interfaceReadOnlyProcessDefinition
- Specified by:
getDiagramResourceName
in interfaceResourceDefinition
- Overrides:
getDiagramResourceName
in classProcessDefinitionImpl
-
setDiagramResourceName
- Specified by:
setDiagramResourceName
in interfaceResourceDefinitionEntity<ProcessDefinitionEntity>
-
hasStartFormKey
public boolean hasStartFormKey()Description copied from interface:ProcessDefinition
Does this process definition has astart form key
.- Specified by:
hasStartFormKey
in interfaceProcessDefinition
-
getHasStartFormKey
public boolean getHasStartFormKey() -
setStartFormKey
public void setStartFormKey(boolean hasStartFormKey) -
setHasStartFormKey
public void setHasStartFormKey(boolean hasStartFormKey) -
isGraphicalNotationDefined
public boolean isGraphicalNotationDefined() -
setGraphicalNotationDefined
public void setGraphicalNotationDefined(boolean isGraphicalNotationDefined) -
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
-
getSuspensionState
public int getSuspensionState() -
setSuspensionState
public void setSuspensionState(int suspensionState) -
isSuspended
public boolean isSuspended()Description copied from interface:ProcessDefinition
Returns true if the process definition is in suspended state.- Specified by:
isSuspended
in interfaceProcessDefinition
-
getCandidateStarterUserIdExpressions
-
addCandidateStarterUserIdExpression
-
getCandidateStarterGroupIdExpressions
-
addCandidateStarterGroupIdExpression
-
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<ProcessDefinitionEntity>
-
getVersionTag
Description copied from interface:ProcessDefinition
Version tag of the process definition.- Specified by:
getVersionTag
in interfaceProcessDefinition
-
setVersionTag
-
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<ProcessDefinitionEntity>
-
isStartableInTasklist
public boolean isStartableInTasklist()Description copied from interface:ProcessDefinition
Returns true if the process definition is startable in Tasklist.- Specified by:
isStartableInTasklist
in interfaceProcessDefinition
-
setStartableInTasklist
public void setStartableInTasklist(boolean isStartableInTasklist)
-