try drools.getWorkingMemory()
On Thu, May 7, 2009 at 12:23 PM, Kevin Alonso <[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users