[rules-users] Camel get ksession results
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@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users
Re: [rules-users] Camel get ksession results
Hi Charles, to be honest, I wasn't sure about the drools policy and added it to check the results, if that's what you mean.. Br, Mauro -- View this message in context: http://drools.46999.n3.nabble.com/Camel-get-ksession-results-tp4023670p4023672.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users