<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
We have slimmed down what KnowledgeHelper does, so it only does
operations involving the current rules context (i.e. the Tuple of
matched data), as KH supplies access to the WorkingMemory you can
simply call getQueryResults on that.<br>
<br>
Mark<br>
Ronald R. DiFrango wrote:
<blockquote
 cite="mid:eb33f140707031339j2799e831p41be51270d41a905@mail.gmail.com"
 type="cite">OK, I got this workinkg now, by adding the jar file <span
 style="font-weight: bold;">core-3.2.3.v_686_R32x.jar</span> from the
distribution to my project.<br>
  <br>
Now though when I run it, I get the following error:<br>
  <br>
The method getQueryResults(String) is undefined for the type
KnowledgeHelper<br>
  <br>
has getQueryResults been removd in 4.x or renamed?<br>
  <br>
  <div><span class="gmail_quote">On 7/3/07, <b class="gmail_sendername">Ronald
R. DiFrango
  </b> &lt;<a moz-do-not-send="true"
 href="mailto:ron.difrango@gmail.com">ron.difrango@gmail.com</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">All,<br>
    <br>
I am in the process of migrating my 3.0. project to the 4.x series and
when I attempt to run my code I get the following exception when I
attempt to load my .drl files:<br>
    <br>
Caused by: org.drools.RuntimeDroolsException
: Unable to load dialect
'org.drools.rule.builder.dialect.java.JavaDialect:java'<br>
    <br>
Here is my package builder code:<br>
    <br>
static<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; builder = new PackageBuilder();
    <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; builder.addPackageFromDrl( new InputStreamReader(
RtvDecisionEngine.class.getResourceAsStream("rtv.drl" ) ) );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; builder.addPackageFromDrl( new InputStreamReader(
RtvDecisionEngine.class.getResourceAsStream
("modelDiscrepancyRules.drl" ) ) );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ruleBase = RuleBaseFactory.newRuleBase();<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ruleBase.addPackage( builder.getPackage() );<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; catch(Exception e)<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; throw new RuntimeException("Failure loading the Rules", e);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; }<br>
    <br>
    <br>
Any thoughts appreciated.<br>
    <br>
Ron<br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>