public class CmmnDeployer extends AbstractDefinitionDeployer<CaseDefinitionEntity>
Deployer
responsible to parse CMMN 1.0 XML files and create the
proper CaseDefinitionEntity
s.Modifier and Type | Field and Description |
---|---|
static String[] |
CMMN_RESOURCE_SUFFIXES |
protected ExpressionManager |
expressionManager |
protected CmmnTransformer |
transformer |
DIAGRAM_SUFFIXES, idGenerator
Constructor and Description |
---|
CmmnDeployer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDefinitionToDeploymentCache(DeploymentCache deploymentCache,
CaseDefinitionEntity definition)
Add a definition to the deployment cache
|
protected CaseDefinitionEntity |
findDefinitionByDeploymentAndKey(String deploymentId,
String definitionKey)
Find a definition entity by deployment id and definition key.
|
protected CaseDefinitionEntity |
findLatestDefinitionByKeyAndTenantId(String definitionKey,
String tenantId)
Find the last deployed definition entity by definition key and tenant id.
|
protected CaseDefinitionManager |
getCaseDefinitionManager() |
ExpressionManager |
getExpressionManager() |
protected String[] |
getResourcesSuffixes() |
CmmnTransformer |
getTransformer() |
protected void |
persistDefinition(CaseDefinitionEntity definition)
Persist definition entity into the database.
|
void |
setExpressionManager(ExpressionManager expressionManager) |
void |
setTransformer(CmmnTransformer transformer) |
protected List<CaseDefinitionEntity> |
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
public static final String[] CMMN_RESOURCE_SUFFIXES
protected ExpressionManager expressionManager
protected CmmnTransformer transformer
protected String[] getResourcesSuffixes()
getResourcesSuffixes
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
protected List<CaseDefinitionEntity> transformDefinitions(DeploymentEntity deployment, ResourceEntity resource, Properties properties)
AbstractDefinitionDeployer
transformDefinitions
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
deployment
- the deployment the resources belongs toresource
- the resource to transformprotected CaseDefinitionEntity findDefinitionByDeploymentAndKey(String deploymentId, String definitionKey)
AbstractDefinitionDeployer
findDefinitionByDeploymentAndKey
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
deploymentId
- the deployment iddefinitionKey
- the definition keyprotected CaseDefinitionEntity findLatestDefinitionByKeyAndTenantId(String definitionKey, String tenantId)
AbstractDefinitionDeployer
findLatestDefinitionByKeyAndTenantId
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
protected void persistDefinition(CaseDefinitionEntity definition)
AbstractDefinitionDeployer
persistDefinition
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
definition
- the definition entityprotected void addDefinitionToDeploymentCache(DeploymentCache deploymentCache, CaseDefinitionEntity definition)
AbstractDefinitionDeployer
addDefinitionToDeploymentCache
in class AbstractDefinitionDeployer<CaseDefinitionEntity>
deploymentCache
- the deployment cachedefinition
- the definition to addprotected CaseDefinitionManager getCaseDefinitionManager()
public ExpressionManager getExpressionManager()
public void setExpressionManager(ExpressionManager expressionManager)
public CmmnTransformer getTransformer()
public void setTransformer(CmmnTransformer transformer)
Copyright © 2021. All rights reserved.