Class DecisionRequirementsDefinitionDeployer
- java.lang.Object
-
- org.camunda.bpm.engine.impl.AbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
-
- org.camunda.bpm.engine.impl.dmn.deployer.DecisionRequirementsDefinitionDeployer
-
- All Implemented Interfaces:
Deployer
public class DecisionRequirementsDefinitionDeployer extends AbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
Deployer
responsible to parse DMN 1.1 XML files and create the properDecisionRequirementsDefinitionEntity
s.
-
-
Field Summary
Fields Modifier and Type Field Description protected static DecisionLogger
LOG
protected DmnTransformer
transformer
-
Fields inherited from class org.camunda.bpm.engine.impl.AbstractDefinitionDeployer
DIAGRAM_SUFFIXES, idGenerator
-
-
Constructor Summary
Constructors Constructor Description DecisionRequirementsDefinitionDeployer()
-
Method Summary
-
Methods inherited from class org.camunda.bpm.engine.impl.AbstractDefinitionDeployer
definitionAddedToDeploymentCache, deploy, generateDefinitionId, getCommandContext, getDefinitionDiagramResourceName, getDeploymentCache, getDiagramResourceForDefinition, getDiagramSuffixes, getGeneralDiagramResourceName, getIdGenerator, getNextVersion, getProcessEngineConfiguration, handlePersistedDefinition, isResourceHandled, loadDefinitions, parseDefinitionResources, persistDefinitions, persistedDefinitionLoaded, postProcessDefinitions, registerDefinition, setIdGenerator, stripDefinitionFileSuffix, transformResource, updateDefinitionByLatestDefinition
-
-
-
-
Field Detail
-
LOG
protected static final DecisionLogger LOG
-
transformer
protected DmnTransformer transformer
-
-
Method Detail
-
getResourcesSuffixes
protected String[] getResourcesSuffixes()
- Specified by:
getResourcesSuffixes
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Returns:
- the list of resource suffixes for this cacheDeployer
-
transformDefinitions
protected List<DecisionRequirementsDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties)
Description copied from class:AbstractDefinitionDeployer
Transform the resource entity into definition entities.- Specified by:
transformDefinitions
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Parameters:
deployment
- the deployment the resources belongs toresource
- the resource to transform- Returns:
- a list of transformed definition entities
-
findDefinitionByDeploymentAndKey
protected DecisionRequirementsDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey)
Description copied from class:AbstractDefinitionDeployer
Find a definition entity by deployment id and definition key.- Specified by:
findDefinitionByDeploymentAndKey
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Parameters:
deploymentId
- the deployment iddefinitionKey
- the definition key- Returns:
- the corresponding definition entity or null if non is found
-
findLatestDefinitionByKeyAndTenantId
protected DecisionRequirementsDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId)
Description copied from class:AbstractDefinitionDeployer
Find the last deployed definition entity by definition key and tenant id.- Specified by:
findLatestDefinitionByKeyAndTenantId
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Returns:
- the corresponding definition entity or null if non is found
-
persistDefinition
protected void persistDefinition(DecisionRequirementsDefinitionEntity definition)
Description copied from class:AbstractDefinitionDeployer
Persist definition entity into the database.- Specified by:
persistDefinition
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Parameters:
definition
- the definition entity
-
addDefinitionToDeploymentCache
protected void addDefinitionToDeploymentCache(DeploymentCache deploymentCache, DecisionRequirementsDefinitionEntity definition)
Description copied from class:AbstractDefinitionDeployer
Add a definition to the deployment cache- Specified by:
addDefinitionToDeploymentCache
in classAbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Parameters:
deploymentCache
- the deployment cachedefinition
- the definition to add
-
ensureNoDuplicateDefinitionKeys
protected void ensureNoDuplicateDefinitionKeys(List<DecisionRequirementsDefinitionEntity> definitions)
-
isDecisionRequirementsDefinitionPersistable
public static boolean isDecisionRequirementsDefinitionPersistable(DecisionRequirementsDefinitionEntity definition)
-
updateDefinitionByPersistedDefinition
protected void updateDefinitionByPersistedDefinition(DeploymentEntity deployment, DecisionRequirementsDefinitionEntity definition, DecisionRequirementsDefinitionEntity persistedDefinition)
-
getDecisionRequirementsDefinitionManager
protected DecisionRequirementsDefinitionManager getDecisionRequirementsDefinitionManager()
-
getTransformer
public DmnTransformer getTransformer()
-
setTransformer
public void setTransformer(DmnTransformer transformer)
-
-