[rules-users] iterating over objects in a StatelessKnowledgeSession

Mark Proctor mproctor at codehaus.org
Tue Mar 17 00:17:51 EDT 2009


Michal Bali wrote:
> Hi,
>
> I am trying this on trunk. There is currently no way how to iterate 
> objects in a StatelessKnowledgeSession.
>
> I've tried to use the GetObjectsCommand, however when it is executes 
> the result is lost in the ether :). The collection of objects is not 
> handed back to the user.
>
> I guess it should probably be added to the BatchExecutionResults? It 
> will then be possible to access this collection of objects.
You have ot specify what it is you want as an out, either as an 'out' on 
an inserted fact or global or a query.
>
> Please let me know if there is a different way how to iterate over 
> objects in a StatelessKnowledgeSession. I'd like to use an 
> ObjectFilter as well.
Extend the Query interface and use that to filter the iterator on a 
returned query.
>
> Best Regards,
> Michal
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090317/5e4cc675/attachment.html 


More information about the rules-users mailing list