use of org.kie.workbench.common.forms.migration.tool.pipelines.basic.impl.DataObjectFormAdapter in project kie-wb-common by kiegroup.
the class FormDefinitionGenerator method doExecute.
@Override
public void doExecute(MigrationContext migrationContext) {
migrationContext.getSummaries().removeIf(this::basicSummaryCheck);
DataObjectFormAdapter dataObjectAdapter = dataObjectFormAdapterFunction.apply(migrationContext);
List<FormMigrationSummary> possibleDataObjectForms = dataObjectAdapter.migrateSummaries();
if (!possibleDataObjectForms.isEmpty()) {
arrangeNestedForms(possibleDataObjectForms, possibleDataObjectForms);
}
BPMNFormAdapter bpmFormAdapter = bpmFormAdapterFunction.apply(migrationContext);
List<FormMigrationSummary> possibleBPMNForms = bpmFormAdapter.migrateSummaries();
if (!possibleBPMNForms.isEmpty() && !possibleDataObjectForms.isEmpty()) {
arrangeNestedForms(possibleDataObjectForms, possibleDataObjectForms);
}
if (!migrationContext.getExtraSummaries().isEmpty() && !possibleDataObjectForms.isEmpty()) {
arrangeNestedForms(migrationContext.getExtraSummaries(), possibleDataObjectForms);
}
}
Aggregations