use of org.drools.workbench.screens.guided.dtable.client.widget.Validator in project drools-wb by kiegroup.
the class NewGuidedDecisionTableWizard method setContent.
public void setContent(final Path contextPath, final String baseFileName, final GuidedDecisionTable52.TableFormat tableFormat, final GuidedDecisionTable52.HitPolicy hitPolicy, final AsyncPackageDataModelOracle oracle, final GuidedDecisionTableWizardHandler handler) {
this.model = new GuidedDecisionTable52();
this.model.setTableFormat(tableFormat);
this.model.setHitPolicy(hitPolicy);
if (GuidedDecisionTable52.HitPolicy.RESOLVED_HIT.equals(hitPolicy)) {
final MetadataCol52 metadataCol52 = new MetadataCol52();
metadataCol52.setMetadata(GuidedDecisionTable52.HitPolicy.RESOLVED_HIT_METADATA_NAME);
this.model.getMetadataCols().add(metadataCol52);
}
this.contextPath = contextPath;
this.oracle = oracle;
this.handler = handler;
final Validator validator = new Validator(model.getConditions());
for (WizardPage page : pages) {
final AbstractGuidedDecisionTableWizardPage dtp = (AbstractGuidedDecisionTableWizardPage) page;
dtp.setContent(contextPath, baseFileName, tableFormat, hitPolicy, oracle, model, validator);
dtp.initialise();
}
}
Aggregations