Re: [rules-users] choose method from fact object in guided editor

2013-06-10 Thread Hans Wirz
ilto:rules-users-boun...@lists.jboss.org] Im Auftrag von Stephen Masters Gesendet: Montag, 10. Juni 2013 17:24 An: Rules Users List Betreff: Re: [rules-users] choose method from fact object in guided editor I think I have a better idea of what you're trying to do now. Below is the content of a

Re: [rules-users] choose method from fact object in guided editor

2013-06-10 Thread Stephen Masters
I think I have a better idea of what you're trying to do now. Below is the content of a message I sent to this list the other day. I think you might find the technique relevant to what you are doing. i.e. Create a DSL which refers to an enumeration which you define. That way, you get drop-down m

Re: [rules-users] choose method from fact object in guided editor

2013-06-10 Thread Michael Anstis
(…. > > ** ** > > Regards - Hans > > ** ** > > *Von:* rules-users-boun...@lists.jboss.org [mailto: > rules-users-boun...@lists.jboss.org] *Im Auftrag von *Stephen Masters > *Gesendet:* Montag, 10. Juni 2013 16:01 > *An:* Rules Users List > *Betreff:* Re: [ru

Re: [rules-users] choose method from fact object in guided editor

2013-06-10 Thread Hans Wirz
ent which has a value keyed by {key} that matches {expr}=$: Dokument(.. Regards - Hans Von: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] Im Auftrag von Stephen Masters Gesendet: Montag, 10. Juni 2013 16:01 An: Rules Users List Betreff: Re: [rules-users] cho

Re: [rules-users] choose method from fact object in guided editor

2013-06-10 Thread Stephen Masters
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, ho

[rules-users] choose method from fact object in guided editor

2013-06-10 Thread Hans Wirz
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): How to achieve this in Guvn