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 process definition.
|
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)
ActivitiException - 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)
#getMostRecentVersionOfProcessDefinition as it looks specifically for
a process definition that is already persisted and attached to a particular deployment,
rather than the latest version across all deployments.Copyright © 2017 Alfresco. All rights reserved.