use of org.drools.verifier.core.index.model.Pattern in project drools-wb by kiegroup.
the class PatternResolver method resolve.
public Pattern resolve() {
PortablePreconditions.checkNotNull("rule", rule);
final Pattern pattern = rule.getPatterns().where(Pattern.boundName().is(getBoundName())).select().first();
if (pattern == null) {
final Pattern build = new Pattern(getBoundName(), resolveObjectType(getFactType()), configuration);
rule.getPatterns().add(build);
return build;
} else {
return pattern;
}
}
Aggregations