<div dir="ltr">Hi Mauro,<div><br></div><div style>Why do you encapsulate this camel route within a camel Policy ?</div><div style>I think that time is come to refactor camel-drools component to simplify its usage.</div><div style>
<br></div><div style>Regards,</div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 6:31 PM, mauro <span dir="ltr">&lt;<a href="mailto:mdurantejr@gmail.com" target="_blank">mdurantejr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I&#39;m using Drools integration with Camel and have to be able to get the<br>
objects that were validated by a rule in a stateless ksession later in the<br>
Camel route.<br>
<br>
My camel-server.xml has something similar to this:<br>
&lt;policy ref=&quot;droolsPolicy&quot;&gt;<br>
   &lt;bean ref=&quot;createList&quot; /&gt;<br>
   &lt;to uri=&quot;drools:node1/ksession1&quot; /&gt;<br>
   &lt;bean ref=&quot;afterRules&quot; /&gt;<br>
&lt;/policy&gt;<br>
<br>
in the &quot;createList&quot; bean I create a list of java objects and call<br>
CommandFactory.newBatchExecution(commandList);<br>
<br>
My Drools rule responds as expected. So far so good.<br>
But then later when execution reaches &quot;afterRules&quot; bean, the exchange body<br>
has empty lists for both &quot;facts&quot; and &quot;results&quot;.<br>
<br>
What I want at this point is to be able to get all the objects which were<br>
compatible with the rule (a simple sysout). The ones that didn&#39;t match the<br>
rule, are simply disposed.<br>
<br>
How can I solve that?<br>
<br>
Drools v5.5.0 Final<br>
Camel 2.10.4<br>
<br>
<br>
Thanks!<br>
Mauro<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Camel-get-ksession-results-tp4023670.html" target="_blank">http://drools.46999.n3.nabble.com/Camel-get-ksession-results-tp4023670.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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Charles Moulliard</div><div>Apache Committer / Sr. Enterprise Architect (RedHat)</div><div>Twitter : @cmoulliard | Blog : <a href="http://cmoulliard.blogspot.com" target="_blank">http://cmoulliard.blogspot.com</a></div>
<div><br></div>
</div>