public class BpmnDeploymentHelper extends Object
BpmnDeployer
is
done by orchestrating the different pieces of work this class does; by having them here,
we allow other deployers to make use of them.Modifier and Type | Field and Description |
---|---|
protected EventSubscriptionManager |
eventSubscriptionManager |
protected TimerManager |
timerManager |
Constructor and Description |
---|
BpmnDeploymentHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addAuthorizationsForNewProcessDefinition(ProcessDefinitionEntity processDefinition) |
protected void |
addAuthorizationsFromIterator(CommandContext commandContext,
Set<Expression> expressions,
ProcessDefinitionEntity processDefinition,
org.activiti.engine.impl.bpmn.deployer.BpmnDeploymentHelper.ExprType expressionType) |
void |
copyDeploymentValuesToProcessDefinitions(DeploymentEntity deployment,
List<ProcessDefinitionEntity> processDefinitions)
Updates all the process definition entities to match the deployment's values for tenant,
engine version, and deployment id.
|
EventSubscriptionManager |
getEventSubscriptionManager() |
ProcessDefinitionEntity |
getMostRecentVersionOfProcessDefinition(ProcessDefinitionEntity processDefinition)
Gets the most recent persisted process definition that matches this one for tenant and key.
|
ProcessDefinitionEntity |
getPersistedInstanceOfProcessDefinition(ProcessDefinitionEntity processDefinition)
Gets the persisted version of the already-deployed process definition.
|
TimerManager |
getTimerManager() |
void |
setEventSubscriptionManager(EventSubscriptionManager eventSubscriptionManager) |
void |
setResourceNamesOnProcessDefinitions(ParsedDeployment parsedDeployment)
Updates all the process definition entities to have the correct resource names.
|
void |
setTimerManager(TimerManager timerManager) |
void |
updateTimersAndEvents(ProcessDefinitionEntity processDefinition,
ProcessDefinitionEntity previousProcessDefinition,
ParsedDeployment parsedDeployment)
Updates all timers and events for the process definition.
|
void |
verifyProcessDefinitionsDoNotShareKeys(Collection<ProcessDefinitionEntity> processDefinitions)
Verifies that no two process definitions share the same key, to prevent database unique
index violation.
|
protected TimerManager timerManager
protected EventSubscriptionManager eventSubscriptionManager
public void verifyProcessDefinitionsDoNotShareKeys(Collection<ProcessDefinitionEntity> processDefinitions)
ActivitiException
- if any two processes have the same keypublic void copyDeploymentValuesToProcessDefinitions(DeploymentEntity deployment, List<ProcessDefinitionEntity> processDefinitions)
public void setResourceNamesOnProcessDefinitions(ParsedDeployment parsedDeployment)
public ProcessDefinitionEntity getMostRecentVersionOfProcessDefinition(ProcessDefinitionEntity processDefinition)
public ProcessDefinitionEntity getPersistedInstanceOfProcessDefinition(ProcessDefinitionEntity processDefinition)
getMostRecentVersionOfProcessDefinition(org.activiti.engine.impl.persistence.entity.ProcessDefinitionEntity)
as it looks specifically for
a process definition that is already persisted and attached to a particular deployment,
rather than the latest version across all deployments.public void updateTimersAndEvents(ProcessDefinitionEntity processDefinition, ProcessDefinitionEntity previousProcessDefinition, ParsedDeployment parsedDeployment)
public void addAuthorizationsForNewProcessDefinition(ProcessDefinitionEntity processDefinition)
processDefinition
- protected void addAuthorizationsFromIterator(CommandContext commandContext, Set<Expression> expressions, ProcessDefinitionEntity processDefinition, org.activiti.engine.impl.bpmn.deployer.BpmnDeploymentHelper.ExprType expressionType)
public TimerManager getTimerManager()
public void setTimerManager(TimerManager timerManager)
public EventSubscriptionManager getEventSubscriptionManager()
public void setEventSubscriptionManager(EventSubscriptionManager eventSubscriptionManager)
Copyright © 2015 Alfresco. All rights reserved.