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 form entities to match the deployment's values for tenant, engine version, and deployment id.
|
FormDefinitionEntity |
getMostRecentVersionOfForm(FormDefinitionEntity formDefinition)
Gets the most recent persisted form 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 form entities to have the correct resource names.
|
void |
verifyFormsDoNotShareKeys(Collection<FormDefinitionEntity> forms)
Verifies that no two forms share the same key, to prevent database unique index violation.
|
public void verifyFormsDoNotShareKeys(Collection<FormDefinitionEntity> forms)
org.flowable.common.engine.api.FlowableException
- if any two forms 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(com.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 © 2019. All rights reserved.