[rules-users] trying to retrieve facts from WorkingMemory

Michal Bali michalbali at gmail.com
Fri May 8 04:54:26 EDT 2009


try drools.getWorkingMemory()

On Thu, May 7, 2009 at 12:23 PM, Kevin Alonso <kalonso at vicomtech.org> wrote:

> I“m trying to retrieve the information of the Working memory inside an
> action element of the ruleflow.
>
> I have already writed a query in to .drl file
>
> query "Random Word"
>   rw : RandomWord()
> end
>
> And part of the code in the action element is the next:
>
> QueryResults results = workingMemory.getQueryResults("Random Word" );
> System.out.println( "we have " + results.size() + " random words" );
>
> I have obtained this code  from documentation, but I don“t know how to get
> the workingMemory object.
>
> Regards,
>
> Kevin
> _______________________________________________
> 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/20090508/49dc7989/attachment.html 


More information about the rules-users mailing list