[rules-users] Camel get ksession results

Charles Moulliard ch007m at gmail.com
Fri May 3 12:36:00 EDT 2013


Hi Mauro,

Why do you encapsulate this camel route within a camel Policy ?
I think that time is come to refactor camel-drools component to simplify
its usage.

Regards,




On Fri, May 3, 2013 at 6:31 PM, mauro <mdurantejr at gmail.com> wrote:

> Hi,
>
> I'm using Drools integration with Camel and have to be able to get the
> objects that were validated by a rule in a stateless ksession later in the
> Camel route.
>
> My camel-server.xml has something similar to this:
> <policy ref="droolsPolicy">
>    <bean ref="createList" />
>    <to uri="drools:node1/ksession1" />
>    <bean ref="afterRules" />
> </policy>
>
> in the "createList" bean I create a list of java objects and call
> CommandFactory.newBatchExecution(commandList);
>
> My Drools rule responds as expected. So far so good.
> But then later when execution reaches "afterRules" bean, the exchange body
> has empty lists for both "facts" and "results".
>
> What I want at this point is to be able to get all the objects which were
> compatible with the rule (a simple sysout). The ones that didn't match the
> rule, are simply disposed.
>
> How can I solve that?
>
> Drools v5.5.0 Final
> Camel 2.10.4
>
>
> Thanks!
> Mauro
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Camel-get-ksession-results-tp4023670.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130503/8258a792/attachment.html 


More information about the rules-users mailing list