You could try using a combination of BRL Fragments and DSL.

Define your DSL as the expression: [when]My calendar is between {p1} and {p2)=eval( myCal.isInInterval("{p1}", {p2}") and use the DSL in a BRL Fragment.

With kind regards,

Mike

On 14 February 2013 09:13, nbe42 <nbe414@gmail.com> wrote:
Hello,

I'm pretty new with Guvnor (5.5) and I need some help to write a rule.

I have to write a rule with the web guided decision table editor. I have in
my working memory a calendar object with a function for verify if the
current date is in an time interval.

Now, I'm using a predicate and writes this in the cell :

myCal.isInInterval("08:00","12:00")

So the source code is like  :
WHEN
eval( myCal.isInInterval("08:00","12:00") )

THEN



The problem is that it's really not user friendly. I want to be able to
write values in one or two cell(s) and the source code remains like above.

Is there a way to do this ?
Thanks a lot for your help




--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Web-guided-DecisionTable-calls-function-with-parameters-from-cells-values-tp4022296.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users