<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><base href="x-msg://441/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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?</div><div><br></div><div>If you don't want to do either of those, how about a DSL sentence to select reviewed content? i.e.&nbsp;</div><div><br></div><div>[when][]There is a document which was reviewed by {reviewer}=$d: Document(getContentValue("reviewed") matches "{reviewer}"); Document(this == …</div><div><br></div><div>(warning - probable syntax errors above)</div><div><br></div><div>Steve</div><div><br></div><div><br></div><div><br></div><br><div><div>On 10 Jun 2013, at 13:58, Hans Wirz &lt;<a href="mailto:hans.wirz@xmv.ch">hans.wirz@xmv.ch</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div lang="DE-CH" link="blue" vlink="purple" style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="WordSection1" style="page: WordSection1; "><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">Hello<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">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.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">Example (.drl-file edited by Drools-Plugin in Eclipse):<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span>&lt;image001.png&gt;</span><span lang="EN-GB"><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">How to achieve this in Guvnor guided editor, because the method<span class="Apple-converted-space">&nbsp;</span><b>getContentValue(“reviewed”)</b><span class="Apple-converted-space">&nbsp;</span>cannot be chosen – it must be KNOWN by the one who creates the rule?<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">My approach (using a Formula):<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span>&lt;image002.png&gt;</span><span lang="EN-GB"><o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">&nbsp;</span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">Many thanks for your help<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif; "><span lang="EN-GB">Hans<o:p></o:p></span></div></div>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org" style="color: purple; text-decoration: underline; ">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" style="color: purple; text-decoration: underline; ">https://lists.jboss.org/mailman/listinfo/rules-users</a></div></blockquote></div><br></body></html>