public class DmnDeployer extends AbstractDefinitionDeployer<DecisionDefinitionEntity>
Deployer
responsible to parse DMN 1.0 XML files and create the
proper DecisionDefinitionEntity
s.Modifier and Type | Field and Description |
---|---|
static String[] |
DMN_RESOURCE_SUFFIXES |
protected DmnTransformer |
transformer |
DIAGRAM_SUFFIXES, idGenerator
Constructor and Description |
---|
DmnDeployer() |
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 DecisionDefinitionEntity |
findLatestDefinitionByKey(String definitionKey)
Find the last deployed definition entity by definition key.
|
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, generateDiagramResourceForDefinition, getCommandContext, getDefinitionDiagramResourceName, getDeploymentCache, getDiagramResourceForDefinition, getDiagramSuffixes, getGeneralDiagramResourceName, getIdGenerator, getNextVersion, getProcessEngineConfiguration, isResourceHandled, loadDefinitions, parseDefinitionResources, persistDefinitions, persistedDefinitionLoaded, postProcessDefinitions, registerDefinition, setIdGenerator, stripDefinitionFileSuffix, transformResource, updateDefinitionByLatestDefinition, updateDefinitionByPersistedDefinition
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 DecisionDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey)
AbstractDefinitionDeployer
findDefinitionByDeploymentAndKey
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
deploymentId
- the deployment iddefinitionKey
- the definition keyprotected DecisionDefinitionEntity findLatestDefinitionByKey(String definitionKey)
AbstractDefinitionDeployer
findLatestDefinitionByKey
in class AbstractDefinitionDeployer<DecisionDefinitionEntity>
definitionKey
- the definition keyprotected 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 © 2018. All rights reserved.