<div dir="ltr"><div><div><div>Facts inserted into WorkingMemory within rules are not automagically added to anywhere else.<br><br></div>To retrieve Facts created inside rules there are different options available; the simplest probably being to use a global that is a collection.<br>
<br></div>You can add new Facts to the global inside rules&#39; RHS and also examine the content of the global in regular Java.<br><br>Have a read about using globals.<br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 9 April 2013 19:45, dfsmith <span dir="ltr">&lt;<a href="mailto:dfsmith@llbean.com" target="_blank">dfsmith@llbean.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the quick reply!<br>
<br>
This is where I&#39;m confused. My Then looks like this:<br>
<div class="im"><br>
        SearchActions fact0 = new SearchActions();<br>
        fact0.setUrlRedirect( &quot;junk&quot; );<br>
        insert( fact0 );<br>
        System.out.println(&quot;Created junk!!!&quot;);<br>
<br>
</div>There must be a SearchActions object created somewhere in memory as a result<br>
of the rule. I was thinking it would be added to the list that was passed<br>
into the knowledge session.<br>
<br>
How / where do I check for and access the inserted object after the<br>
execution of the rules?<br>
<br>
Something simple I&#39;m just not seeing in the examples I&#39;ve googled.<br>
<br>
Thanks,<br>
<br>
David<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Rules-Firing-Java-Objects-Not-Manipulated-tp4023270p4023272.html" target="_blank">http://drools.46999.n3.nabble.com/Rules-Firing-Java-Objects-Not-Manipulated-tp4023270p4023272.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>