use of org.drools.core.rule.QueryImpl in project drools by kiegroup.
the class KiePackagesBuilder method compileQuery.
private QueryImpl compileQuery(KnowledgePackageImpl pkg, Query query) {
QueryImpl queryImpl = new QueryImpl(query.getName());
queryImpl.setPackage(query.getPackage());
RuleContext ctx = new RuleContext(this, pkg, queryImpl);
addQueryPattern(query, queryImpl, ctx);
populateLHS(ctx, pkg, query.getView());
return queryImpl;
}
Aggregations