did you call the fire all rules method?<br><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 7:23 PM, slyfox <span dir="ltr"><<a href="mailto:bobby.richards@gmail.com">bobby.richards@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It seems like I have fusion working correctly, yet the rules are not firing.<br>
<br>
I have a quote object<br>
<br>
class Quote {<br>
private String symbol;<br>
private double bid;<br>
private double ask;<br>
<br>
//eclipse generated getters and setter<br>
}<br>
<br>
in my drl I have the following:<br>
import path.to.quote;<br>
<br>
declare entry-point "Incoming Quotes"<br>
@doc ("incoming quotes")<br>
end<br>
<br>
declare Quote<br>
@role (event)<br>
//@expires(2s)<br>
end<br>
<br>
rule "show something"<br>
when<br>
FXQuote(symbol == "EUR/USD", s:symbol) from entry-point "Incoming Quotes"<br>
then<br>
System.out.println("euro quote");<br>
end<br>
<br>
in my code I am inserting manually:<br>
quoteStream = ksession.getWorkingMemoryEntryPoint("Incoming Quotes");<br>
...<br>
quoteStream.insert(quote);<br>
<br>
I have verified I am getting quote objects with symbol == "EUR/USD" yet the<br>
rule is not firing<br>
<br>
<br>
I only say that it *appears* that I have the stream set up properly because<br>
everything compiles and runs and in my log file I see the incoming quotes:<br>
<br>
<org.drools.audit.event.ObjectLogEvent><br>
<type>1</type><br>
<factId>6</factId><br>
<objectToString>com.trendfx.fxlib.FXQuote@103ec0d</objectToString><br>
</org.drools.audit.event.ObjectLogEvent><br>
<org.drools.audit.event.ObjectLogEvent><br>
<type>3</type><br>
<factId>2</factId><br>
<objectToString>com.trendfx.fxlib.FXQuote@145f918</objectToString><br>
</org.drools.audit.event.ObjectLogEvent><br>
<org.drools.audit.event.ObjectLogEvent><br>
<type>3</type><br>
<factId>3</factId><br>
<objectToString>com.trendfx.fxlib.FXQuote@184843c</objectToString><br>
</org.drools.audit.event.ObjectLogEvent><br>
<org.drools.audit.event.ObjectLogEvent><br>
<type>3</type><br>
<factId>5</factId><br>
<objectToString>com.trendfx.fxlib.FXQuote@1912b66</objectToString><br>
</org.drools.audit.event.ObjectLogEvent><br>
<br>
etc..<br>
<br>
simple rule but no output, tried debugging but since I can only add<br>
breakpoints to RHS this doesnt really help me<br>
<br>
Thanks,<br>
Bobby<br>
<font color="#888888"><br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420043.html" target="_blank">http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420043.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a> <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div>
- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -</div>
<br>