public class FormDefinitionDeploymentHelper extends Object
FormDefinitionDeployer 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 |
|---|
FormDefinitionDeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDeploymentValuesToForms(FormDeploymentEntity deployment,
List<FormDefinitionEntity> formDefinitions)
Updates all the decision table entities to match the deployment's values for tenant, engine version, and deployment id.
|
FormDefinitionEntity |
getMostRecentVersionOfForm(FormDefinitionEntity formDefinition)
Gets the most recent persisted decision table that matches this one for tenant and key.
|
FormDefinitionEntity |
getPersistedInstanceOfFormDefinition(FormDefinitionEntity formDefinition)
Gets the persisted version of the already-deployed form.
|
void |
setResourceNamesOnFormDefinitions(ParsedDeployment parsedDeployment)
Updates all the decision table entities to have the correct resource names.
|
void |
verifyFormsDoNotShareKeys(Collection<FormDefinitionEntity> forms)
Verifies that no two decision tables share the same key, to prevent database unique index violation.
|
public void verifyFormsDoNotShareKeys(Collection<FormDefinitionEntity> forms)
FlowableException - if any two decision tables have the same keypublic void copyDeploymentValuesToForms(FormDeploymentEntity deployment, List<FormDefinitionEntity> formDefinitions)
public void setResourceNamesOnFormDefinitions(ParsedDeployment parsedDeployment)
public FormDefinitionEntity getMostRecentVersionOfForm(FormDefinitionEntity formDefinition)
public FormDefinitionEntity getPersistedInstanceOfFormDefinition(FormDefinitionEntity formDefinition)
getMostRecentVersionOfForm(org.flowable.form.engine.impl.persistence.entity.FormDefinitionEntity) as it looks specifically for a form that is already persisted and
attached to a particular deployment, rather than the latest version across all deployments.Copyright © 2021 Flowable. All rights reserved.