public class FormDeploymentHelper extends Object
FormDeployer 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 |
|---|
FormDeploymentHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
copyDeploymentValuesToForms(FormDeploymentEntity deployment,
List<FormEntity> forms)
Updates all the decision table entities to match the deployment's values for tenant,
engine version, and deployment id.
|
FormEntity |
getMostRecentVersionOfForm(FormEntity form)
Gets the most recent persisted decision table that matches this one for tenant and key.
|
FormEntity |
getPersistedInstanceOfForm(FormEntity form)
Gets the persisted version of the already-deployed form.
|
void |
setResourceNamesOnForms(ParsedDeployment parsedDeployment)
Updates all the decision table entities to have the correct resource names.
|
void |
verifyFormsDoNotShareKeys(Collection<FormEntity> forms)
Verifies that no two decision tables share the same key, to prevent database unique index violation.
|
public void verifyFormsDoNotShareKeys(Collection<FormEntity> forms)
ActivitiException - if any two decision tables have the same keypublic void copyDeploymentValuesToForms(FormDeploymentEntity deployment, List<FormEntity> forms)
public void setResourceNamesOnForms(ParsedDeployment parsedDeployment)
public FormEntity getMostRecentVersionOfForm(FormEntity form)
public FormEntity getPersistedInstanceOfForm(FormEntity form)
getMostRecentVersionOfForm(org.activiti.form.engine.impl.persistence.entity.FormEntity) 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 © 2017 Alfresco. All rights reserved.