use of org.drools.workbench.screens.guided.dtable.client.wizard.table.pages.events.ConditionsDefinedEvent in project drools-wb by kiegroup.
the class FactPatternConstraintsPage method isComplete.
@Override
public void isComplete(final Callback<Boolean> callback) {
// Have all patterns conditions been defined?
boolean areConditionsDefined = true;
for (Pattern52 p : model.getPatterns()) {
for (ConditionCol52 c : p.getChildColumns()) {
if (!getValidator().isConditionValid(c)) {
areConditionsDefined = false;
break;
}
}
}
// Signal Condition definitions to other pages
final ConditionsDefinedEvent event = new ConditionsDefinedEvent(areConditionsDefined);
conditionsDefinedEvent.fire(event);
callback.callback(areConditionsDefined);
}
Aggregations