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 proper
DecisionRequirementsDefinitionEntity
s.-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.AbstractDefinitionDeployer
DIAGRAM_SUFFIXES, idGenerator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDefinitionToDeploymentCache
(DeploymentCache deploymentCache, DecisionRequirementsDefinitionEntity definition) Add a definition to the deployment cacheprotected void
protected DecisionRequirementsDefinitionEntity
findDefinitionByDeploymentAndKey
(String deploymentId, String definitionKey) Find a definition entity by deployment id and definition key.protected DecisionRequirementsDefinitionEntity
findLatestDefinitionByKeyAndTenantId
(String definitionKey, String tenantId) Find the last deployed definition entity by definition key and tenant id.protected DecisionRequirementsDefinitionManager
protected String[]
static boolean
protected void
Persist definition entity into the database.void
setTransformer
(DmnTransformer transformer) void
skipEnforceTtl
(boolean skipEnforceTtl) protected List<DecisionRequirementsDefinitionEntity>
transformDefinitions
(DeploymentEntity deployment, ResourceEntity resource, Properties properties) Transform the resource entity into definition entities.protected void
updateDefinitionByPersistedDefinition
(DeploymentEntity deployment, DecisionRequirementsDefinitionEntity definition, DecisionRequirementsDefinitionEntity persistedDefinition) 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 Details
-
LOG
-
transformer
-
-
Constructor Details
-
DecisionRequirementsDefinitionDeployer
public DecisionRequirementsDefinitionDeployer()
-
-
Method Details
-
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
-
skipEnforceTtl
public void skipEnforceTtl(boolean skipEnforceTtl) -
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
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
-
getTransformer
-
setTransformer
-