Is there some reason you can't just create a no-args method on the fact such as "getReviewedContent()"? Or why the pattern match couldn't directly match on reviewed content instead of using rules in Java to determine whether content has been reviewed?

If you don't want to do either of those, how about a DSL sentence to select reviewed content? i.e. 

[when][]There is a document which was reviewed by {reviewer}=$d: Document(getContentValue("reviewed") matches "{reviewer}"); Document(this == …

(warning - probable syntax errors above)


On 10 Jun 2013, at 13:58, Hans Wirz <> wrote:

I’m new to Drools and Guvnor and I’m trying to find a way to enable the selection of a method (other than getter and setter) by the guvnor guided editor in a drop-down-list way like the fields.
Example (.drl-file edited by Drools-Plugin in Eclipse):
How to achieve this in Guvnor guided editor, because the method getContentValue(“reviewed”) cannot be chosen – it must be KNOWN by the one who creates the rule?
My approach (using a Formula):
Many thanks for your help
rules-users mailing list