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 |
copyDeploymentValuesToDecisionTables(DmnDeploymentEntity deployment,
List<DecisionTableEntity> decisionTables)
Updates all the decision table entities to match the deployment's values for tenant, engine version, and deployment id.
|
DecisionTableEntity |
getMostRecentVersionOfDecisionTable(DecisionTableEntity decisionTable)
Gets the most recent persisted decision table that matches this one for tenant and key.
|
DecisionTableEntity |
getPersistedInstanceOfDecisionTable(DecisionTableEntity decisionTable)
Gets the persisted version of the already-deployed decision table.
|
void |
setResourceNamesOnDecisionTables(ParsedDeployment parsedDeployment)
Updates all the decision table entities to have the correct resource names.
|
void |
verifyDecisionTablesDoNotShareKeys(Collection<DecisionTableEntity> decisionTables)
Verifies that no two decision tables share the same key, to prevent database unique index violation.
|
public void verifyDecisionTablesDoNotShareKeys(Collection<DecisionTableEntity> decisionTables)
FlowableException - if any two decision tables have the same keypublic void copyDeploymentValuesToDecisionTables(DmnDeploymentEntity deployment, List<DecisionTableEntity> decisionTables)
public void setResourceNamesOnDecisionTables(ParsedDeployment parsedDeployment)
public DecisionTableEntity getMostRecentVersionOfDecisionTable(DecisionTableEntity decisionTable)
public DecisionTableEntity getPersistedInstanceOfDecisionTable(DecisionTableEntity decisionTable)
getMostRecentVersionOfDecisionTable(org.flowable.dmn.engine.impl.persistence.entity.DecisionTableEntity) as it looks specifically for a decision
table that is already persisted and attached to a particular deployment, rather than the latest version across all deployments.Copyright © 2018 Flowable. All rights reserved.