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(org.flowable.bpmn.model.Process process,
ProcessDefinitionEntity processDefinition) |
protected void |
addAuthorizationsFromIterator(CommandContext commandContext,
List<String> expressions,
ProcessDefinitionEntity processDefinition,
org.flowable.engine.impl.bpmn.deployer.BpmnDeploymentHelper.ExpressionType 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 |
getMostRecentDerivedVersionOfProcessDefinition(ProcessDefinitionEntity processDefinition)
Gets the most recent persisted derived process definition that matches this one for tenant and key.
|
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)
FlowableException - 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 getMostRecentDerivedVersionOfProcessDefinition(ProcessDefinitionEntity processDefinition)
public ProcessDefinitionEntity getPersistedInstanceOfProcessDefinition(ProcessDefinitionEntity processDefinition)
getMostRecentVersionOfProcessDefinition(org.flowable.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(org.flowable.bpmn.model.Process process,
ProcessDefinitionEntity processDefinition)
processDefinition - protected void addAuthorizationsFromIterator(CommandContext commandContext, List<String> expressions, ProcessDefinitionEntity processDefinition, org.flowable.engine.impl.bpmn.deployer.BpmnDeploymentHelper.ExpressionType expressionType)
public TimerManager getTimerManager()
public void setTimerManager(TimerManager timerManager)
public EventSubscriptionManager getEventSubscriptionManager()
public void setEventSubscriptionManager(EventSubscriptionManager eventSubscriptionManager)
Copyright © 2018 Flowable. All rights reserved.