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)
Steve
On 10 Jun 2013, at 13:58, Hans Wirz <hans.wirz(a)xmv.ch> wrote:
Hello
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):
<image001.png>
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):
<image002.png>
Many thanks for your help
Hans
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users