ah, right, Here is the test.log:<div>---------------------</div><div><div><object-stream></div><div><org.drools.audit.event.ActivationLogEvent></div><div> <type>4</type></div><div> <activationId>Hello World [0]</activationId></div>
<div> <rule>Hello World</rule></div><div> <declarations></declarations></div><div></org.drools.audit.event.ActivationLogEvent></div><div><org.drools.audit.event.ObjectLogEvent></div><div>
<type>1</type></div><div> <factId>1</factId></div><div> <objectToString>java.lang.Object@19ec4ed</objectToString></div><div></org.drools.audit.event.ObjectLogEvent></div><div>
<org.drools.audit.event.ActivationLogEvent></div><div> <type>5</type></div><div> <activationId>Hello World [0]</activationId></div><div> <rule>Hello World</rule></div><div> <declarations></declarations></div>
<div></org.drools.audit.event.ActivationLogEvent></div><div><org.drools.audit.event.ObjectLogEvent></div><div> <type>1</type></div><div> <factId>2</factId></div><div> <objectToString>com.mycompany.app.DroolsTest$Message@fd918a</objectToString></div>
<div></org.drools.audit.event.ObjectLogEvent></div><div>------------------------------</div><div>first I inserted the Object then the message.</div><div><br></div><div><br></div><br><div class="gmail_quote">2010/5/13 Mauricio Salatino <span dir="ltr"><<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">KnoledgeRuntimeLoggerFactory.newConsoleLogger(ksession);<br>Probably it's a bug, as mark said, but I want to understand your current behavior to be able to analyze the problem.<br>
Greetings.<br><br><div class="gmail_quote">
2010/5/13 Michal Bali <span dir="ltr"><<a href="mailto:michalbali@gmail.com" target="_blank">michalbali@gmail.com</a>></span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>Thank you for looking into this.</div>
<div> </div>
<div>@Salaboy: </div>
<div>1 what do you mean by a runtime logger? (is it agenda logger and workingmemory logger?)</div>
<div>2 yes true. I forgot about that.</div>
<div> </div>
<div>Best regards,</div>
<div>Michal<font color="#888888"><br><br></font></div><div><div></div><div>
<div class="gmail_quote">On Thu, May 13, 2010 at 1:45 AM, Salaboy <span dir="ltr"><<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left:1px solid rgb(204, 204, 204);margin:0px 0px 0px 0.8ex;padding-left:1ex" class="gmail_quote">By the way you understand that doesn't make sense to do that LHS<br>right? You can do forall(Message())<br>
<div><br>- Ing. Mauricio Salatino -<br><br>On May 12, 2010, at 13:52, Michal Bali <<a href="mailto:michalbali@gmail.com" target="_blank">michalbali@gmail.com</a>> wrote:<br><br></div>
<div>
<div></div>
<div>> Hi,<br>><br>> I have encountered the following problem with the latest Drools 5.1<br>> SNAPSHOT<br>><br>> I've created a sample Drools project and replaced the Sample.drl<br>> with the following:<br>
> --Sample.drl--------------------------------------<br>> package com.sample<br>><br>> import com.sample.DroolsTest.Message;<br>><br>> rule "Hello World"<br>> when<br>> forall( Message( )<br>
> Message() )<br>> then<br>> System.out.println("executed");<br>> end<br>> --------------------------------------------<br>> If I run the sample application like this everything is fine -<br>
> "executed" is printed. However, if I modify the main method and<br>> insert some additional fact just before the message fact is<br>> inserted, like this:<br>> --DroolsTest.java-----------------------------------<br>
> .....<br>> ksession.insert(new Object());<br>> ksession.insert(message);<br>> .....<br>> -----------------------------------------------------------<br>> then the rule won't fire any more.<br>><br>
> Please note that if you change the fact insertion order (first the<br>> message then the Object) it will work as expected.<br>><br>> Is this a bug or am I missing something? I can file a JIRA if needed.<br>
><br>
> Thank you!<br>> Best regards,<br>> Michal<br></div></div>
<div>
<div></div>
<div>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
<br></blockquote></div></div></div><font color="#888888"><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
- Salatino "Salaboy" Mauricio -<br>
</font><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>
<br></blockquote></div><br></div>