public class DmnDeploymentHelper extends Object
DmnDeployer is done by orchestrating the different pieces of work this class does; by having them here, we allow other
deployers to make use of them.| Constructor and Description |
|---|
DmnDeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDeploymentValuesToDecisions(DmnDeploymentEntity deployment,
List<DecisionEntity> decisions)
Updates all the decision entities to match the deployment's values for tenant, engine version, and deployment id.
|
void |
createAndPersistNewDiagramsIfNeeded(ParsedDeployment parsedDeployment,
DecisionRequirementsDiagramHelper decisionRequirementsDiagramHelper)
Creates new diagrams for decisions if the deployment is new, the decision in question supports it, and the engine is configured to make new diagrams.
|
DecisionEntity |
getMostRecentVersionOfDecision(DecisionEntity decision)
Gets the most recent persisted decision that matches this one for tenant and key.
|
DecisionEntity |
getPersistedInstanceOfDecision(DecisionEntity decision)
Gets the persisted version of the already-deployed decision.
|
protected void |
setDecisionDefinitionDiagramNames(ParsedDeployment parsedDeployment)
Updates all the decision entities to have the correct diagram resource name.
|
void |
setResourceNamesOnDecisions(ParsedDeployment parsedDeployment)
Updates all the decision entities to have the correct resource names.
|
void |
verifyDecisionTablesDoNotShareKeys(Collection<DecisionEntity> decisionTables)
Verifies that no two decisions share the same key, to prevent database unique index violation.
|
public void verifyDecisionTablesDoNotShareKeys(Collection<DecisionEntity> decisionTables)
FlowableException - if any two decisions have the same keypublic void copyDeploymentValuesToDecisions(DmnDeploymentEntity deployment, List<DecisionEntity> decisions)
public void setResourceNamesOnDecisions(ParsedDeployment parsedDeployment)
public DecisionEntity getMostRecentVersionOfDecision(DecisionEntity decision)
public DecisionEntity getPersistedInstanceOfDecision(DecisionEntity decision)
getMostRecentVersionOfDecision(org.flowable.dmn.engine.impl.persistence.entity.DecisionEntity) as it looks specifically for a decision
that is already persisted and attached to a particular deployment, rather than the latest version across all deployments.public void createAndPersistNewDiagramsIfNeeded(ParsedDeployment parsedDeployment, DecisionRequirementsDiagramHelper decisionRequirementsDiagramHelper)
protected void setDecisionDefinitionDiagramNames(ParsedDeployment parsedDeployment)
Copyright © 2021 Flowable. All rights reserved.