| Modifier and Type | Field and Description |
|---|---|
static String[] |
BPMN_RESOURCE_SUFFIXES |
protected BpmnParser |
bpmnParser |
static String[] |
DIAGRAM_SUFFIXES |
protected ExpressionManager |
expressionManager |
protected IdGenerator |
idGenerator |
| Constructor and Description |
|---|
BpmnDeployer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAuthorizations(ProcessDefinitionEntity processDefinition) |
protected void |
addDefinitionInfoToCache(ProcessDefinitionEntity processDefinition,
ProcessEngineConfigurationImpl processEngineConfiguration,
CommandContext commandContext) |
protected void |
addMessageEventSubscriptions(ProcessDefinitionEntity processDefinition) |
protected void |
addProcessDefinitionToCache(ProcessDefinitionEntity processDefinition,
Map<String,org.flowable.bpmn.model.BpmnModel> bpmnModelMap,
ProcessEngineConfigurationImpl processEngineConfiguration,
CommandContext commandContext) |
protected void |
addSignalEventSubscriptions(ProcessDefinitionEntity processDefinition) |
protected void |
addTimerDeclarations(ProcessDefinitionEntity processDefinition,
List<TimerJobEntity> timers) |
protected void |
createLocalizationValues(String processDefinitionId,
org.flowable.bpmn.model.Process process) |
protected void |
createResource(String name,
byte[] bytes,
DeploymentEntity deploymentEntity) |
void |
deploy(DeploymentEntity deployment,
Map<String,Object> deploymentSettings) |
protected String |
getBpmnFileImageResourceName(String bpmnFileResource,
String diagramSuffix) |
BpmnParser |
getBpmnParser() |
protected String |
getDiagramResourceForProcess(String bpmnFileResource,
String processKey,
Map<String,ResourceEntity> resources)
Returns the default name of the image resource for a certain process.
|
ExpressionManager |
getExpressionManager() |
IdGenerator |
getIdGenerator() |
protected String |
getProcessImageResourceName(String bpmnFileResource,
String processKey,
String diagramSuffix) |
protected boolean |
isBpmnResource(String resourceName) |
protected boolean |
isEqualToCurrentLocalizationValue(String language,
String id,
String propertyName,
String propertyValue,
com.fasterxml.jackson.databind.node.ObjectNode infoNode) |
protected boolean |
localizeDataObjectElements(List<org.flowable.bpmn.model.ValuedDataObject> dataObjects,
com.fasterxml.jackson.databind.node.ObjectNode infoNode) |
protected boolean |
localizeFlowElements(Collection<org.flowable.bpmn.model.FlowElement> flowElements,
com.fasterxml.jackson.databind.node.ObjectNode infoNode) |
protected void |
removeExistingMessageEventSubscriptions(ProcessDefinitionEntity processDefinition,
ProcessDefinitionEntity latestProcessDefinition) |
protected void |
removeExistingSignalEventSubScription(ProcessDefinitionEntity processDefinition,
ProcessDefinitionEntity latestProcessDefinition) |
protected void |
removeObsoleteTimers(ProcessDefinitionEntity processDefinition) |
void |
setBpmnParser(BpmnParser bpmnParser) |
void |
setExpressionManager(ExpressionManager expressionManager) |
void |
setIdGenerator(IdGenerator idGenerator) |
protected String |
stripBpmnFileSuffix(String bpmnFileResource) |
public static final String[] BPMN_RESOURCE_SUFFIXES
public static final String[] DIAGRAM_SUFFIXES
protected ExpressionManager expressionManager
protected BpmnParser bpmnParser
protected IdGenerator idGenerator
public void deploy(DeploymentEntity deployment, Map<String,Object> deploymentSettings)
protected void addProcessDefinitionToCache(ProcessDefinitionEntity processDefinition, Map<String,org.flowable.bpmn.model.BpmnModel> bpmnModelMap, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext)
protected void addDefinitionInfoToCache(ProcessDefinitionEntity processDefinition, ProcessEngineConfigurationImpl processEngineConfiguration, CommandContext commandContext)
protected void addTimerDeclarations(ProcessDefinitionEntity processDefinition, List<TimerJobEntity> timers)
protected void removeObsoleteTimers(ProcessDefinitionEntity processDefinition)
protected void removeExistingMessageEventSubscriptions(ProcessDefinitionEntity processDefinition, ProcessDefinitionEntity latestProcessDefinition)
protected void addMessageEventSubscriptions(ProcessDefinitionEntity processDefinition)
protected void removeExistingSignalEventSubScription(ProcessDefinitionEntity processDefinition, ProcessDefinitionEntity latestProcessDefinition)
protected void addSignalEventSubscriptions(ProcessDefinitionEntity processDefinition)
protected void createLocalizationValues(String processDefinitionId, org.flowable.bpmn.model.Process process)
protected boolean localizeFlowElements(Collection<org.flowable.bpmn.model.FlowElement> flowElements, com.fasterxml.jackson.databind.node.ObjectNode infoNode)
protected boolean isEqualToCurrentLocalizationValue(String language, String id, String propertyName, String propertyValue, com.fasterxml.jackson.databind.node.ObjectNode infoNode)
protected boolean localizeDataObjectElements(List<org.flowable.bpmn.model.ValuedDataObject> dataObjects, com.fasterxml.jackson.databind.node.ObjectNode infoNode)
protected void addAuthorizations(ProcessDefinitionEntity processDefinition)
protected String getDiagramResourceForProcess(String bpmnFileResource, String processKey, Map<String,ResourceEntity> resources)
It will first look for an image resource which matches the process specifically, before resorting to an image resource which matches the BPMN 2.0 xml file resource.
Example: if the deployment contains a BPMN 2.0 xml resource called 'abc.bpmn20.xml' containing only one process with key 'myProcess', then this method will look for an image resources called 'abc.myProcess.png' (or .jpg, or .gif, etc.) or 'abc.png' if the previous one wasn't found.
Example 2: if the deployment contains a BPMN 2.0 xml resource called 'abc.bpmn20.xml' containing three processes (with keys a, b and c), then this method will first look for an image resource called 'abc.a.png' before looking for 'abc.png' (likewise for b and c). Note that if abc.a.png, abc.b.png and abc.c.png don't exist, all processes will have the same image: abc.png.
protected String getBpmnFileImageResourceName(String bpmnFileResource, String diagramSuffix)
protected String getProcessImageResourceName(String bpmnFileResource, String processKey, String diagramSuffix)
protected void createResource(String name, byte[] bytes, DeploymentEntity deploymentEntity)
protected boolean isBpmnResource(String resourceName)
public ExpressionManager getExpressionManager()
public void setExpressionManager(ExpressionManager expressionManager)
public BpmnParser getBpmnParser()
public void setBpmnParser(BpmnParser bpmnParser)
public IdGenerator getIdGenerator()
public void setIdGenerator(IdGenerator idGenerator)
Copyright © 2018 Flowable. All rights reserved.