Class DefaultAutoDeploymentStrategy
java.lang.Object
org.flowable.common.spring.CommonAutoDeploymentStrategy<TemplateEngine>
com.flowable.template.engine.autodeployment.AbstractTemplateAutoDeploymentStrategy
com.flowable.template.engine.autodeployment.DefaultAutoDeploymentStrategy
- All Implemented Interfaces:
AutoDeploymentStrategy<TemplateEngine>
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deploymentProperties, logger
-
Constructor Summary
ConstructorDescriptionDefaultAutoDeploymentStrategy
(Set<String> autoDeployTenants) DefaultAutoDeploymentStrategy
(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addToTemplateKeyMap
(Resource resource, Map<String, Resource> templateKeyMap, TemplateResourceConverter resourceConverter) protected void
addToTemplateVariationKeyMap
(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateVariationResourceConverter resourceConverter) protected void
collectDefinition
(Resource resource, Map<String, Resource> templateKeyMap, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateEngineConfiguration templateEngineConfiguration) protected void
collectDefinitions
(Resource[] resources, Map<String, Resource> templateKeyMap, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateEngineConfiguration templateEngineConfiguration) protected void
deploy
(String deploymentNameHint, Collection<Resource> templateModelResources, Collection<TemplateVariationModel> templateVariationModels, TemplateRepositoryService templateRepositoryService, String tenantId) protected void
deployResourcesInternal
(String deploymentNameHint, Resource[] resources, TemplateEngine engine) protected String
protected boolean
isTemplateVariationResource
(String resourceName) protected void
readAndConsume
(Resource resource, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Consumer<com.fasterxml.jackson.databind.JsonNode> definitionNodeConsumer) Methods inherited from class com.flowable.template.engine.autodeployment.AbstractTemplateAutoDeploymentStrategy
addResource, addResource, getLockManager
Methods inherited from class org.flowable.common.spring.CommonAutoDeploymentStrategy
deployResources, determineLockName, determineResourceName, getDeploymentLockWaitTime, getDeploymentProperties, getLockName, handlesMode, isThrowExceptionOnDeploymentFailure, isUseLockForDeployments, setDeploymentProperties
-
Field Details
-
DEPLOYMENT_MODE
The deployment mode this strategy handles.- See Also:
-
autoDeployTenants
-
-
Constructor Details
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy() -
DefaultAutoDeploymentStrategy
-
DefaultAutoDeploymentStrategy
public DefaultAutoDeploymentStrategy(CommonAutoDeploymentProperties deploymentProperties, Set<String> autoDeployTenants)
-
-
Method Details
-
getDeploymentMode
- Specified by:
getDeploymentMode
in classCommonAutoDeploymentStrategy<TemplateEngine>
-
deployResourcesInternal
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, TemplateEngine engine) - Specified by:
deployResourcesInternal
in classCommonAutoDeploymentStrategy<TemplateEngine>
-
deploy
protected void deploy(String deploymentNameHint, Collection<Resource> templateModelResources, Collection<TemplateVariationModel> templateVariationModels, TemplateRepositoryService templateRepositoryService, String tenantId) -
collectDefinitions
protected void collectDefinitions(Resource[] resources, Map<String, Resource> templateKeyMap, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateEngineConfiguration templateEngineConfiguration) -
collectDefinition
protected void collectDefinition(Resource resource, Map<String, Resource> templateKeyMap, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateEngineConfiguration templateEngineConfiguration) -
readAndConsume
-
addToTemplateVariationKeyMap
protected void addToTemplateVariationKeyMap(com.fasterxml.jackson.databind.JsonNode definitionNode, Map<String, TemplateVariationModel> templateVariationKeyMap, TemplateVariationResourceConverter resourceConverter) -
addToTemplateKeyMap
protected void addToTemplateKeyMap(Resource resource, Map<String, Resource> templateKeyMap, TemplateResourceConverter resourceConverter) -
isTemplateVariationResource
-