public class ProcessDefinitionEntity extends ProcessDefinitionImpl implements ProcessDefinition, ResourceDefinitionEntity<ProcessDefinitionEntity>, DbEntity, HasDbRevision
ScopeImpl.BacklogErrorCallback
Modifier and Type | Field and Description |
---|---|
protected Set<Expression> |
candidateStarterGroupIdExpressions |
protected Set<Expression> |
candidateStarterUserIdExpressions |
protected String |
category |
protected List<IdentityLinkEntity> |
definitionIdentityLinkEntities |
protected String |
deploymentId |
protected String |
diagramResourceName |
protected boolean |
firstVersion |
protected boolean |
hasStartFormKey |
protected Integer |
historyLevel |
protected Integer |
historyTimeToLive |
protected boolean |
isGraphicalNotationDefined |
protected boolean |
isIdentityLinksInitialized |
protected boolean |
isStartableInTasklist |
protected String |
key |
protected static EnginePersistenceLogger |
LOG |
protected String |
previousProcessDefinitionId |
protected String |
resourceName |
protected int |
revision |
protected StartFormHandler |
startFormHandler |
protected int |
suspensionState |
protected Map<String,TaskDefinition> |
taskDefinitions |
protected String |
tenantId |
protected int |
version |
protected String |
versionTag |
description, initial, initialActivityStacks, laneSets, name, participantProcess
BACKLOG, eventActivities, flowActivities, isSubProcessScope, namedFlowActivities, processDefinition
ioMapping
builtInListeners, builtInVariableListeners, id, listeners, properties, variableListeners
Constructor and Description |
---|
ProcessDefinitionEntity() |
Modifier and Type | Method and Description |
---|---|
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() |
protected void |
ensurePreviousProcessDefinitionIdInitialized() |
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 definition is contained.
|
String |
getDescription()
description of this process
|
String |
getDiagramResourceName()
The diagram resource name for this definition if exist
|
boolean |
getHasStartFormKey() |
Integer |
getHistoryLevel() |
Integer |
getHistoryTimeToLive()
History time to live.
|
List<IdentityLinkEntity> |
getIdentityLinks() |
String |
getKey()
unique name for all versions this definition
|
Object |
getPersistentState()
Returns a representation of the object,
as would be stored in the database.
|
ProcessDefinitionEntity |
getPreviousDefinition() |
String |
getPreviousProcessDefinitionId() |
String |
getResourceName()
name of
the resource of this definition |
int |
getRevision() |
int |
getRevisionNext() |
StartFormHandler |
getStartFormHandler() |
int |
getSuspensionState() |
Map<String,TaskDefinition> |
getTaskDefinitions() |
String |
getTenantId()
The id of the tenant this definition belongs to.
|
int |
getVersion()
version of this definition
|
String |
getVersionTag()
Version tag of the process definition.
|
boolean |
hasStartFormKey()
Does this process definition has a
start form key . |
boolean |
isGraphicalNotationDefined() |
boolean |
isStartableInTasklist()
Returns true if the process definition is startable in Tasklist.
|
boolean |
isSuspended()
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 case
|
protected PvmExecutionImpl |
newProcessInstance() |
protected void |
resetPreviousProcessDefinitionId() |
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 |
setId(String id) |
void |
setKey(String key) |
protected void |
setPreviousProcessDefinitionId(String previousProcessDefinitionId) |
void |
setResourceName(String resourceName) |
void |
setRevision(int revision) |
void |
setStartableInTasklist(boolean isStartableInTasklist) |
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) |
String |
toString() |
void |
updateModifiableFieldsFromEntity(ProcessDefinitionEntity updatingProcessDefinition)
Updates all modifiable fields from another process definition entity.
|
addLaneSet, createProcessInstanceForInitial, ensureDefaultInitialExists, getActivityBehavior, getEventScope, getFlowScope, getInitial, getInitialActivityStack, getInitialActivityStack, getLaneForId, getLaneSets, getLevelOfSubprocessScope, getParticipantProcess, isScope, isSubProcessScope, setInitial, setParticipantProcess
addExecutionListener, addExecutionListener, addToBacklog, contains, createActivity, findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities, getBacklogErrorCallbacks, getChildActivity, getEventActivities, getExecutionListeners, getExecutionListeners, getProcessDefinition, isAncestorFlowScopeOf, isBacklogEmpty, setSubProcessScope
createActivity, getIoMapping, setIoMapping
addBuiltInListener, addBuiltInListener, addBuiltInVariableListener, addBuiltInVariableListener, addListener, addListener, addListenerToMap, addVariableListener, addVariableListener, getBuiltInListeners, getBuiltInListeners, getBuiltInVariableListeners, getBuiltInVariableListenersLocal, getId, getListeners, getListeners, getName, getProperties, getProperty, getVariableListeners, getVariableListenersLocal, setName, setProperties, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setName
getId, getName
getName
findActivity, findActivityAtLevelOfSubprocess, findTransition, getActivities
getId, getProcessDefinition, getProperties, getProperty
protected static final EnginePersistenceLogger LOG
protected String key
protected int revision
protected int version
protected String category
protected String deploymentId
protected String resourceName
protected Integer historyLevel
protected StartFormHandler startFormHandler
protected String diagramResourceName
protected boolean isGraphicalNotationDefined
protected Map<String,TaskDefinition> taskDefinitions
protected boolean hasStartFormKey
protected int suspensionState
protected String tenantId
protected String versionTag
protected Integer historyTimeToLive
protected boolean isIdentityLinksInitialized
protected List<IdentityLinkEntity> definitionIdentityLinkEntities
protected Set<Expression> candidateStarterUserIdExpressions
protected Set<Expression> candidateStarterGroupIdExpressions
protected boolean isStartableInTasklist
protected boolean firstVersion
protected String previousProcessDefinitionId
protected void ensureNotSuspended()
public ExecutionEntity createProcessInstance()
createProcessInstance
in interface PvmProcessDefinition
createProcessInstance
in class ProcessDefinitionImpl
public ExecutionEntity createProcessInstance(String businessKey)
createProcessInstance
in interface PvmProcessDefinition
createProcessInstance
in class ProcessDefinitionImpl
public ExecutionEntity createProcessInstance(String businessKey, String caseInstanceId)
createProcessInstance
in interface PvmProcessDefinition
createProcessInstance
in class ProcessDefinitionImpl
public ExecutionEntity createProcessInstance(String businessKey, ActivityImpl initial)
createProcessInstance
in class ProcessDefinitionImpl
protected PvmExecutionImpl newProcessInstance()
newProcessInstance
in class ProcessDefinitionImpl
public ExecutionEntity createProcessInstance(String businessKey, String caseInstanceId, ActivityImpl initial)
createProcessInstance
in class ProcessDefinitionImpl
public IdentityLinkEntity addIdentityLink(String userId, String groupId)
public List<IdentityLinkEntity> getIdentityLinks()
public String toString()
toString
in class ProcessDefinitionImpl
public void updateModifiableFieldsFromEntity(ProcessDefinitionEntity updatingProcessDefinition)
updateModifiableFieldsFromEntity
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
updatingProcessDefinition
- public ProcessDefinitionEntity getPreviousDefinition()
getPreviousDefinition
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
protected ProcessDefinitionEntity loadProcessDefinition(String processDefinitionId)
public String getPreviousProcessDefinitionId()
protected void resetPreviousProcessDefinitionId()
protected void setPreviousProcessDefinitionId(String previousProcessDefinitionId)
protected void ensurePreviousProcessDefinitionIdInitialized()
public Object getPersistentState()
DbEntity
getPersistentState
in interface DbEntity
public String getKey()
ResourceDefinition
getKey
in interface ResourceDefinition
public void setKey(String key)
setKey
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public String getDescription()
ProcessDefinition
getDescription
in interface ReadOnlyProcessDefinition
getDescription
in interface ProcessDefinition
getDescription
in class ProcessDefinitionImpl
public String getDeploymentId()
ResourceDefinition
getDeploymentId
in interface PvmProcessDefinition
getDeploymentId
in interface ResourceDefinition
getDeploymentId
in class ProcessDefinitionImpl
public void setDeploymentId(String deploymentId)
setDeploymentId
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public int getVersion()
ResourceDefinition
getVersion
in interface ResourceDefinition
public void setVersion(int version)
setVersion
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public void setId(String id)
setId
in interface DbEntity
setId
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
setId
in class CoreModelElement
public String getResourceName()
ResourceDefinition
the resource
of this definitiongetResourceName
in interface ResourceDefinition
public void setResourceName(String resourceName)
setResourceName
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public Integer getHistoryLevel()
public void setHistoryLevel(Integer historyLevel)
public StartFormHandler getStartFormHandler()
public void setStartFormHandler(StartFormHandler startFormHandler)
public Map<String,TaskDefinition> getTaskDefinitions()
public void setTaskDefinitions(Map<String,TaskDefinition> taskDefinitions)
public String getCategory()
ResourceDefinition
getCategory
in interface ResourceDefinition
public void setCategory(String category)
setCategory
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public String getDiagramResourceName()
ResourceDefinition
getDiagramResourceName
in interface ReadOnlyProcessDefinition
getDiagramResourceName
in interface ResourceDefinition
getDiagramResourceName
in class ProcessDefinitionImpl
public void setDiagramResourceName(String diagramResourceName)
setDiagramResourceName
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public boolean hasStartFormKey()
ProcessDefinition
start form key
.hasStartFormKey
in interface ProcessDefinition
public boolean getHasStartFormKey()
public void setStartFormKey(boolean hasStartFormKey)
public void setHasStartFormKey(boolean hasStartFormKey)
public boolean isGraphicalNotationDefined()
public void setGraphicalNotationDefined(boolean isGraphicalNotationDefined)
public int getRevision()
getRevision
in interface HasDbRevision
public void setRevision(int revision)
setRevision
in interface HasDbRevision
public int getRevisionNext()
getRevisionNext
in interface HasDbRevision
public int getSuspensionState()
public void setSuspensionState(int suspensionState)
public boolean isSuspended()
ProcessDefinition
isSuspended
in interface ProcessDefinition
public Set<Expression> getCandidateStarterUserIdExpressions()
public void addCandidateStarterUserIdExpression(Expression userId)
public Set<Expression> getCandidateStarterGroupIdExpressions()
public void addCandidateStarterGroupIdExpression(Expression groupId)
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<ProcessDefinitionEntity>
public String getVersionTag()
ProcessDefinition
getVersionTag
in interface ProcessDefinition
public void setVersionTag(String versionTag)
public Integer getHistoryTimeToLive()
ResourceDefinition
getHistoryTimeToLive
in interface ResourceDefinition
public void setHistoryTimeToLive(Integer historyTimeToLive)
setHistoryTimeToLive
in interface ResourceDefinitionEntity<ProcessDefinitionEntity>
public boolean isStartableInTasklist()
ProcessDefinition
isStartableInTasklist
in interface ProcessDefinition
public void setStartableInTasklist(boolean isStartableInTasklist)
Copyright © 2022. All rights reserved.