org.camunda.bpm.engine.impl.dmn.deployer
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
DecisionRequirementsDefinitionEntitys.
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final DecisionLogger LOG
transformer
protected org.camunda.bpm.dmn.engine.impl.spi.transform.DmnTransformer transformer
DecisionRequirementsDefinitionDeployer
public DecisionRequirementsDefinitionDeployer()
getResourcesSuffixes
protected String[] getResourcesSuffixes()
- Specified by:
getResourcesSuffixes in class AbstractDefinitionDeployer<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 class AbstractDefinitionDeployer<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 class AbstractDefinitionDeployer<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 class AbstractDefinitionDeployer<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 class AbstractDefinitionDeployer<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 class AbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
- Parameters:
deploymentCache - the deployment cachedefinition - the definition to add
ensureNoDuplicateDefinitionKeys
protected void ensureNoDuplicateDefinitionKeys(List<DecisionRequirementsDefinitionEntity> definitions)
- Overrides:
ensureNoDuplicateDefinitionKeys in class AbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
isDecisionRequirementsDefinitionPersistable
public static boolean isDecisionRequirementsDefinitionPersistable(DecisionRequirementsDefinitionEntity definition)
updateDefinitionByPersistedDefinition
protected void updateDefinitionByPersistedDefinition(DeploymentEntity deployment,
DecisionRequirementsDefinitionEntity definition,
DecisionRequirementsDefinitionEntity persistedDefinition)
- Overrides:
updateDefinitionByPersistedDefinition in class AbstractDefinitionDeployer<DecisionRequirementsDefinitionEntity>
getDecisionRequirementsDefinitionManager
protected DecisionRequirementsDefinitionManager getDecisionRequirementsDefinitionManager()
getTransformer
public org.camunda.bpm.dmn.engine.impl.spi.transform.DmnTransformer getTransformer()
setTransformer
public void setTransformer(org.camunda.bpm.dmn.engine.impl.spi.transform.DmnTransformer transformer)
Copyright © 2017 camunda services GmbH. All rights reserved.