public class DefaultProcessDefinitionAutoDeployer extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
autoDeployTenants |
protected org.springframework.core.io.Resource[] |
bpmnResources |
static String |
DEFAULT_DEPLOYMENT_NAME |
static int |
DEFAULT_ORDER |
protected String |
deploymentName |
protected int |
order |
protected org.flowable.engine.ProcessEngineConfiguration |
processEngineConfiguration |
Constructor and Description |
---|
DefaultProcessDefinitionAutoDeployer(org.springframework.core.io.Resource[] bpmnResources,
org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration,
Set<String> autoDeployTenants) |
DefaultProcessDefinitionAutoDeployer(org.springframework.core.io.Resource[] bpmnResources,
org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration,
String deploymentName,
Set<String> autoDeployTenants) |
Modifier and Type | Method and Description |
---|---|
protected void |
addResources(org.springframework.core.io.Resource[] resources,
org.flowable.engine.repository.DeploymentBuilder deploymentBuilder) |
protected void |
deploy(String tenantId) |
int |
getOrder() |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
setOrder(int order) |
public static final String DEFAULT_DEPLOYMENT_NAME
public static final int DEFAULT_ORDER
protected org.springframework.core.io.Resource[] bpmnResources
protected org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration
protected String deploymentName
protected int order
public DefaultProcessDefinitionAutoDeployer(org.springframework.core.io.Resource[] bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, Set<String> autoDeployTenants)
bpmnResources
- the resources that should be deployedprocessEngineConfiguration
- the engine configurationautoDeployTenants
- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)public DefaultProcessDefinitionAutoDeployer(org.springframework.core.io.Resource[] bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, String deploymentName, Set<String> autoDeployTenants)
bpmnResources
- the resources that should be deployedprocessEngineConfiguration
- the engine configurationdeploymentName
- the name of the deploymentautoDeployTenants
- the tenants to which the auto deployment should be done (if empty then a single deployment is done without using tenant)public int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setOrder(int order)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
protected void deploy(String tenantId)
Copyright © 2019. All rights reserved.