Class DefaultProcessDefinitionAutoDeployer
java.lang.Object
com.flowable.platform.common.deployer.CommonAutoDeployer
com.flowable.platform.common.deployer.DefaultProcessDefinitionAutoDeployer
- All Implemented Interfaces:
Lifecycle,Phased,SmartLifecycle
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected Stringprotected org.flowable.engine.ProcessEngineConfigurationFields inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deploymentProperties, deploymentResources, lifeCycleMonitor, logger, runningFields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsConstructorDescriptionDefaultProcessDefinitionAutoDeployer(Collection<Resource> bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, String deploymentName, Set<String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) DefaultProcessDefinitionAutoDeployer(Collection<Resource> bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, Set<String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddeploy(Collection<Resource> resources, String tenantId) protected voiddeployResourcesInternal(Collection<Resource> resources) Methods that should be implemented by sub classes to perform the actual deployment.protected org.flowable.common.engine.api.lock.LockManagerGet the lock manager for the current deployer.intgetPhase()Methods inherited from class com.flowable.platform.common.deployer.CommonAutoDeployer
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, isRunning, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
isAutoStartup, stop
-
Field Details
-
DEFAULT_DEPLOYMENT_NAME
- See Also:
-
processEngineConfiguration
protected org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration -
deploymentName
-
autoDeployTenants
-
-
Constructor Details
-
DefaultProcessDefinitionAutoDeployer
public DefaultProcessDefinitionAutoDeployer(Collection<Resource> bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, Set<String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) - Parameters:
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)
-
DefaultProcessDefinitionAutoDeployer
public DefaultProcessDefinitionAutoDeployer(Collection<Resource> bpmnResources, org.flowable.engine.ProcessEngineConfiguration processEngineConfiguration, String deploymentName, Set<String> autoDeployTenants, org.flowable.common.spring.CommonAutoDeploymentProperties deploymentProperties) - Parameters:
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)
-
-
Method Details
-
getPhase
public int getPhase()- Specified by:
getPhasein interfacePhased- Specified by:
getPhasein interfaceSmartLifecycle- Specified by:
getPhasein classCommonAutoDeployer
-
deployResourcesInternal
Description copied from class:CommonAutoDeployerMethods that should be implemented by sub classes to perform the actual deployment. If use lock for deployments is used than this methods is called with an already acquired lock.- Specified by:
deployResourcesInternalin classCommonAutoDeployer- Parameters:
resources- the resources to be deployed
-
getLockManager
protected org.flowable.common.engine.api.lock.LockManager getLockManager()Description copied from class:CommonAutoDeployerGet the lock manager for the current deployer. Used when the strategy has been configured to use lock for deployments.- Specified by:
getLockManagerin classCommonAutoDeployer- Returns:
- the lock manager
-
deploy
-