try drools.getWorkingMemory()
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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users