public class DecisionDefinitionDeployer extends AbstractDefinitionDeployer<DecisionDefinitionEntity>
Deployer
responsible to parse DMN 1.1 XML files and create the proper
DecisionDefinitionEntity
s. Since it uses the result of the
DecisionRequirementsDefinitionDeployer
to avoid duplicated parsing, the DecisionRequirementsDefinitionDeployer must
process the deployment before this cacheDeployer.Modifier and Type | Field and Description |
---|---|
static String[] |
DMN_RESOURCE_SUFFIXES |
protected static DecisionLogger |
LOG |
protected DmnTransformer |
transformer |
DIAGRAM_SUFFIXES, idGenerator
Constructor and Description |
---|
DecisionDefinitionDeployer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefinitionToDeploymentCache(DeploymentCache deploymentCache,
DecisionDefinitionEntity definition)
Add a definition to the deployment cache
|
protected DecisionDefinitionEntity |
findDefinitionByDeploymentAndKey(String deploymentId,
String definitionKey)
Find a definition entity by deployment id and definition key.
|
protected DecisionRequirementsDefinitionEntity |
findDeployedDrdForResource(DeploymentEntity deployment,
String resourceName) |
protected DecisionDefinitionEntity |
findLatestDefinitionByKeyAndTenantId(String definitionKey,
String tenantId)
Find the last deployed definition entity by definition key and tenant id.
|
protected DecisionDefinitionManager |
getDecisionDefinitionManager() |
protected String[] |
getResourcesSuffixes() |
DmnTransformer |
getTransformer() |
protected void |
persistDefinition(DecisionDefinitionEntity definition)
Persist definition entity into the database.
|
void |
setTransformer(DmnTransformer transformer) |
protected List<DecisionDefinitionEntity> |
transformDefinitions(DeploymentEntity deployment,
ResourceEntity resource,
Properties properties)
Transform the resource entity into definition entities.
|
definitionAddedToDeploymentCache, deploy, ensureNoDuplicateDefinitionKeys, generateDefinitionId, getCommandContext, getDefinitionDiagramResourceName, getDeploymentCache, getDiagramResourceForDefinition, getDiagramSuffixes, getGeneralDiagramResourceName, getIdGenerator, getNextVersion, getProcessEngineConfiguration, handlePersistedDefinition, isResourceHandled, loadDefinitions, parseDefinitionResources, persistDefinitions, persistedDefinitionLoaded, postProcessDefinitions, registerDefinition, setIdGenerator, stripDefinitionFileSuffix, transformResource, updateDefinitionByLatestDefinition, updateDefinitionByPersistedDefinition
protected static final DecisionLogger LOG
public static final String[] DMN_RESOURCE_SUFFIXES
protected DmnTransformer transformer
protected String[] getResourcesSuffixes()
getResourcesSuffixes
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
protected List<DecisionDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties)
AbstractDefinitionDeployer
transformDefinitions
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
deployment
- the deployment the resources belongs toresource
- the resource to transformprotected DecisionRequirementsDefinitionEntity findDeployedDrdForResource(DeploymentEntity deployment, String resourceName)
protected DecisionDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey)
AbstractDefinitionDeployer
findDefinitionByDeploymentAndKey
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
deploymentId
- the deployment iddefinitionKey
- the definition keyprotected DecisionDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId)
AbstractDefinitionDeployer
findLatestDefinitionByKeyAndTenantId
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
protected void persistDefinition(DecisionDefinitionEntity definition)
AbstractDefinitionDeployer
persistDefinition
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
definition
- the definition entityprotected void addDefinitionToDeploymentCache(DeploymentCache deploymentCache, DecisionDefinitionEntity definition)
AbstractDefinitionDeployer
addDefinitionToDeploymentCache
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
deploymentCache
- the deployment cachedefinition
- the definition to addprotected DecisionDefinitionManager getDecisionDefinitionManager()
public DmnTransformer getTransformer()
public void setTransformer(DmnTransformer transformer)
Copyright © 2020. All rights reserved.