<br> Looks like a bug. Can you please open a JIRA for this?<br><br> Thanks <br> Edson<br><br><div><span class="gmail_quote">2007/8/23, Dean Jones <<a href="mailto:dean.m.jones@gmail.com">dean.m.jones@gmail.com</a>
>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello again,<br><br>I'm probably missing something fundamental here, but I have the
<br>following rulebase:<br><br>package org.drools.examples<br><br>rule "Hello World"<br> when<br> Integer()<br> then<br> System.out.println("Hello world");<br>end<br>
<br>rule "Goodbye World"<br> when<br> not Integer()<br> then<br> System.out.println("Goodbye cruel world");<br>end<br><br>and the following code:<br><br>public class TestReadRuleFile {
<br><br>public static void main(String[] args) throws Exception {<br> PackageBuilder builder = new PackageBuilder();<br> InputStreamReader is = new InputStreamReader(<br> TestReadRuleFile.class.getResourceAsStream("
test.drl"));<br> builder.addPackageFromDrl(is);<br> Package pkg = builder.getPackage();<br> RuleBase jbossRulebase = RuleBaseFactory.newRuleBase();<br> jbossRulebase.addPackage(pkg);<br> StatelessSession session =
jbossRulebase.newStatelessSession();<br> session.execute(new Float(1));<br>}<br><br>}<br><br>Neither of the rules fire, which is not what I expected - I thought<br>that the "Goodbye world" rule would fire. When I switch to using a
<br>StatefulSession, the rules behave as I expect. Any thoughts on what's<br>going on here? Thanks,<br><br>Dean.<br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>