org.camunda.bpm.engine.impl.persistence.entity
Class ProcessDefinitionEntity

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.pvm.process.ScopeImpl
              extended by org.camunda.bpm.engine.impl.pvm.process.ProcessDefinitionImpl
                  extended by org.camunda.bpm.engine.impl.persistence.entity.ProcessDefinitionEntity
All Implemented Interfaces:
Serializable, DbEntity, HasDbRevision, PvmProcessDefinition, PvmProcessElement, PvmScope, ReadOnlyProcessDefinition, ProcessDefinition
Direct Known Subclasses:
ProcessDefinitionStatisticsEntity

public class ProcessDefinitionEntity
extends ProcessDefinitionImpl
implements ProcessDefinition, DbEntity, HasDbRevision

Author:
Tom Baeyens, Daniel Meyer
See Also:
Serialized Form

Field Summary
protected  Set<Expression> candidateStarterGroupIdExpressions
           
protected  Set<Expression> candidateStarterUserIdExpressions
           
protected  String category
           
protected  List<IdentityLinkEntity> definitionIdentityLinkEntities
           
protected  String deploymentId
           
protected  String diagramResourceName
           
protected  boolean hasStartFormKey
           
protected  Integer historyLevel
           
protected  boolean isGraphicalNotationDefined
           
protected  boolean isIdentityLinksInitialized
           
protected  String key
           
protected  String resourceName
           
protected  int revision
           
protected  StartFormHandler startFormHandler
           
protected  int suspensionState
           
protected  Map<String,TaskDefinition> taskDefinitions
           
protected  int version
           
 
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
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
ProcessDefinitionEntity()
           
 
Method Summary
 void addCandidateStarterGroupIdExpression(Expression groupId)
           
 void addCandidateStarterUserIdExpression(Expression userId)
           
 IdentityLinkEntity addIdentityLink(String userId, String groupId)
           
 ExecutionEntity createProcessInstance()
           
 ExecutionEntity createProcessInstance(String businessKey)
           
 ExecutionEntity createProcessInstance(String businessKey, ActivityImpl initial)
           
 ExecutionEntity createProcessInstance(String businessKey, String caseInstanceId)
           
 ExecutionEntity createProcessInstance(String businessKey, String caseInstanceId, ActivityImpl initial)
           
 void deleteIdentityLink(String userId, String groupId)
           
protected  void ensureNotSuspended()
           
 Set<Expression> getCandidateStarterGroupIdExpressions()
           
 Set<Expression> getCandidateStarterUserIdExpressions()
           
 String getCategory()
          category name which is derived from the targetNamespace attribute in the definitions element
 String getDeploymentId()
          The deployment in which this process definition is contained.
 String getDescription()
          description of this process
 String getDiagramResourceName()
          The resource name in the deployment of the diagram image (if any).
 boolean getHasStartFormKey()
           
 Integer getHistoryLevel()
           
 List<IdentityLinkEntity> getIdentityLinks()
           
 String getKey()
          unique name for all versions this process definitions
 Object getPersistentState()
          Returns a representation of the object, as would be stored in the database.
 String getResourceName()
          name of the resource of this process definition.
 int getRevision()
           
 int getRevisionNext()
           
 StartFormHandler getStartFormHandler()
           
 int getSuspensionState()
           
 Map<String,TaskDefinition> getTaskDefinitions()
           
 int getVersion()
          version of this process definition
 boolean hasStartFormKey()
          Does this process definition has a start form key.
 boolean isGraphicalNotationDefined()
           
 boolean isSuspended()
          Returns true if the process definition is in suspended state.
protected  PvmExecutionImpl newProcessInstance()
           
 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 setId(String id)
           
 void setKey(String key)
           
 void setResourceName(String resourceName)
           
 void setRevision(int revision)
           
 void setStartFormHandler(StartFormHandler startFormHandler)
           
 void setStartFormKey(boolean hasStartFormKey)
           
 void setSuspensionState(int suspensionState)
           
 void setTaskDefinitions(Map<String,TaskDefinition> taskDefinitions)
           
 void setVersion(int version)
           
 String toString()
           
 void updateModifiedFieldsFromEntity(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, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getChildActivity, getExecutionListeners, getExecutionListeners, getProcessDefinition, 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.repository.ProcessDefinition
getId, getName
 
Methods inherited from interface org.camunda.bpm.engine.impl.db.DbEntity
getId
 
Methods inherited from interface org.camunda.bpm.engine.impl.pvm.ReadOnlyProcessDefinition
getName
 
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.PvmProcessElement
getId, getProcessDefinition, getProperty
 

Field Detail

key

protected String key

revision

protected int revision

version

protected int version

category

protected String category

deploymentId

protected String deploymentId

resourceName

protected String resourceName

historyLevel

protected Integer historyLevel

startFormHandler

protected StartFormHandler startFormHandler

diagramResourceName

protected String diagramResourceName

isGraphicalNotationDefined

protected boolean isGraphicalNotationDefined

taskDefinitions

protected Map<String,TaskDefinition> taskDefinitions

hasStartFormKey

protected boolean hasStartFormKey

suspensionState

protected int suspensionState

isIdentityLinksInitialized

protected boolean isIdentityLinksInitialized

definitionIdentityLinkEntities

protected List<IdentityLinkEntity> definitionIdentityLinkEntities

candidateStarterUserIdExpressions

protected Set<Expression> candidateStarterUserIdExpressions

candidateStarterGroupIdExpressions

protected Set<Expression> candidateStarterGroupIdExpressions
Constructor Detail

ProcessDefinitionEntity

public ProcessDefinitionEntity()
Method Detail

ensureNotSuspended

protected void ensureNotSuspended()

createProcessInstance

public ExecutionEntity createProcessInstance()
Specified by:
createProcessInstance in interface PvmProcessDefinition
Overrides:
createProcessInstance in class ProcessDefinitionImpl

createProcessInstance

public ExecutionEntity createProcessInstance(String businessKey)
Specified by:
createProcessInstance in interface PvmProcessDefinition
Overrides:
createProcessInstance in class ProcessDefinitionImpl

createProcessInstance

public ExecutionEntity createProcessInstance(String businessKey,
                                             String caseInstanceId)
Specified by:
createProcessInstance in interface PvmProcessDefinition
Overrides:
createProcessInstance in class ProcessDefinitionImpl

createProcessInstance

public ExecutionEntity createProcessInstance(String businessKey,
                                             ActivityImpl initial)
Overrides:
createProcessInstance in class ProcessDefinitionImpl

newProcessInstance

protected PvmExecutionImpl newProcessInstance()
Overrides:
newProcessInstance in class ProcessDefinitionImpl

createProcessInstance

public ExecutionEntity createProcessInstance(String businessKey,
                                             String caseInstanceId,
                                             ActivityImpl initial)
Overrides:
createProcessInstance in class ProcessDefinitionImpl

addIdentityLink

public IdentityLinkEntity addIdentityLink(String userId,
                                          String groupId)

deleteIdentityLink

public void deleteIdentityLink(String userId,
                               String groupId)

getIdentityLinks

public List<IdentityLinkEntity> getIdentityLinks()

toString

public String toString()
Overrides:
toString in class ProcessDefinitionImpl

updateModifiedFieldsFromEntity

public void updateModifiedFieldsFromEntity(ProcessDefinitionEntity updatingProcessDefinition)
Updates all modifiable fields from another process definition entity.

Parameters:
updatingProcessDefinition -

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

getKey

public String getKey()
Description copied from interface: ProcessDefinition
unique name for all versions this process definitions

Specified by:
getKey in interface ProcessDefinition

setKey

public void setKey(String key)

getDescription

public String getDescription()
Description copied from interface: ProcessDefinition
description of this process

Specified by:
getDescription in interface ReadOnlyProcessDefinition
Specified by:
getDescription in interface ProcessDefinition
Overrides:
getDescription in class ProcessDefinitionImpl

getDeploymentId

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

Specified by:
getDeploymentId in interface PvmProcessDefinition
Specified by:
getDeploymentId in interface ProcessDefinition
Overrides:
getDeploymentId in class ProcessDefinitionImpl

setDeploymentId

public void setDeploymentId(String deploymentId)

getVersion

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

Specified by:
getVersion in interface ProcessDefinition

setVersion

public void setVersion(int version)

setId

public void setId(String id)
Specified by:
setId in interface DbEntity
Overrides:
setId in class CoreModelElement

getResourceName

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

Specified by:
getResourceName in interface ProcessDefinition

setResourceName

public void setResourceName(String resourceName)

getHistoryLevel

public Integer getHistoryLevel()

setHistoryLevel

public void setHistoryLevel(Integer historyLevel)

getStartFormHandler

public StartFormHandler getStartFormHandler()

setStartFormHandler

public void setStartFormHandler(StartFormHandler startFormHandler)

getTaskDefinitions

public Map<String,TaskDefinition> getTaskDefinitions()

setTaskDefinitions

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

getCategory

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

Specified by:
getCategory in interface ProcessDefinition

setCategory

public void setCategory(String category)

getDiagramResourceName

public String getDiagramResourceName()
Description copied from interface: ProcessDefinition
The resource name in the deployment of the diagram image (if any).

Specified by:
getDiagramResourceName in interface ReadOnlyProcessDefinition
Specified by:
getDiagramResourceName in interface ProcessDefinition
Overrides:
getDiagramResourceName in class ProcessDefinitionImpl

setDiagramResourceName

public void setDiagramResourceName(String diagramResourceName)

hasStartFormKey

public boolean hasStartFormKey()
Description copied from interface: ProcessDefinition
Does this process definition has a start form key.

Specified by:
hasStartFormKey in interface ProcessDefinition

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 interface HasDbRevision

setRevision

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

getRevisionNext

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

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 interface ProcessDefinition

getCandidateStarterUserIdExpressions

public Set<Expression> getCandidateStarterUserIdExpressions()

addCandidateStarterUserIdExpression

public void addCandidateStarterUserIdExpression(Expression userId)

getCandidateStarterGroupIdExpressions

public Set<Expression> getCandidateStarterGroupIdExpressions()

addCandidateStarterGroupIdExpression

public void addCandidateStarterGroupIdExpression(Expression groupId)


Copyright © 2015 camunda services GmbH. All rights reserved.