Class DefaultPlatformAutoDeploymentStrategy
- java.lang.Object
-
- org.flowable.common.spring.CommonAutoDeploymentStrategy<PlatformEngine>
-
- com.flowable.platform.engine.autodeployment.AbstractPlatformAutoDeploymentStrategy
-
- com.flowable.platform.engine.autodeployment.DefaultPlatformAutoDeploymentStrategy
-
- All Implemented Interfaces:
AutoDeploymentStrategy<PlatformEngine>
public class DefaultPlatformAutoDeploymentStrategy extends AbstractPlatformAutoDeploymentStrategy
- Author:
- Yvo Swillens
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>autoDeployTenantsstatic StringDEPLOYMENT_MODEThe deployment mode this strategy handles.-
Fields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
-
Constructor Summary
Constructors Constructor Description DefaultPlatformAutoDeploymentStrategy()DefaultPlatformAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcollectDeploymentResources(QueryResourceConverter queryResourceConverter, VariableExtractorResourceConverter variableExtractorResourceConverter, Resource[] resources, Map<String,Resource> queryKeyMap, Map<String,Resource> variableExtractorKeyMap, Map<String,Resource> legacyQueryKeyMap, Map<String,Resource> legacyVariableExtractorKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)protected voiddeploy(String deploymentName, Collection<Resource> queryResources, Collection<Resource> variableExtractorResources, Collection<Resource> legacyQueryResources, Collection<Resource> legacyVariableExtractorResources, PlatformRepositoryService platformRepositoryService, String tenantId)protected voiddeployResourcesInternal(String deploymentNameHint, Resource[] resources, PlatformEngine engine)protected StringgetDeploymentMode()protected booleanisLegacyResource(String resourceName)protected booleanisQueryDefinitionResource(String resourceName)protected booleanisVariableExtractorDefinitionResource(String resourceName)protected Optional<String>transformLegacyQueryResourceName(Resource legacyResource)protected Optional<String>transformLegacyVariableExtractorResourceName(Resource legacyResource)-
Methods inherited from class com.flowable.platform.engine.autodeployment.AbstractPlatformAutoDeploymentStrategy
addResource, addResource, getLockManager
-
Methods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
-
-
-
Field Detail
-
DEPLOYMENT_MODE
public static final String DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DefaultPlatformAutoDeploymentStrategy
public DefaultPlatformAutoDeploymentStrategy()
-
DefaultPlatformAutoDeploymentStrategy
public DefaultPlatformAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
-
Method Detail
-
getDeploymentMode
protected String getDeploymentMode()
- Specified by:
getDeploymentModein classCommonAutoDeploymentStrategy<PlatformEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, PlatformEngine engine)
- Specified by:
deployResourcesInternalin classCommonAutoDeploymentStrategy<PlatformEngine>
-
deploy
protected void deploy(String deploymentName, Collection<Resource> queryResources, Collection<Resource> variableExtractorResources, Collection<Resource> legacyQueryResources, Collection<Resource> legacyVariableExtractorResources, PlatformRepositoryService platformRepositoryService, String tenantId)
-
collectDeploymentResources
protected void collectDeploymentResources(QueryResourceConverter queryResourceConverter, VariableExtractorResourceConverter variableExtractorResourceConverter, Resource[] resources, Map<String,Resource> queryKeyMap, Map<String,Resource> variableExtractorKeyMap, Map<String,Resource> legacyQueryKeyMap, Map<String,Resource> legacyVariableExtractorKeyMap, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
transformLegacyQueryResourceName
protected Optional<String> transformLegacyQueryResourceName(Resource legacyResource)
-
transformLegacyVariableExtractorResourceName
protected Optional<String> transformLegacyVariableExtractorResourceName(Resource legacyResource)
-
isQueryDefinitionResource
protected boolean isQueryDefinitionResource(String resourceName)
-
isVariableExtractorDefinitionResource
protected boolean isVariableExtractorDefinitionResource(String resourceName)
-
isLegacyResource
protected boolean isLegacyResource(String resourceName)
-
-