You could try using a combination of BRL Fragments and DSL.<br><br>Define your DSL as the expression:<span style="font-family:courier new,monospace"> [when]My calendar is between {p1} and {p2)=eval( myCal.isInInterval(&quot;{p1}&quot;, {p2}&quot;)</span> and use the DSL in a BRL Fragment.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 14 February 2013 09:13, nbe42 <span dir="ltr">&lt;<a href="mailto:nbe414@gmail.com" target="_blank">nbe414@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I&#39;m pretty new with Guvnor (5.5) and I need some help to write a rule.<br>
<br>
I have to write a rule with the web guided decision table editor. I have in<br>
my working memory a calendar object with a function for verify if the<br>
current date is in an time interval.<br>
<br>
Now, I&#39;m using a predicate and writes this in the cell :<br>
<br>
myCal.isInInterval(&quot;08:00&quot;,&quot;12:00&quot;)<br>
<br>
So the source code is like  :<br>
WHEN<br>
eval( myCal.isInInterval(&quot;08:00&quot;,&quot;12:00&quot;) )<br>
<br>
THEN<br>
…<br>
<br>
<br>
The problem is that it&#39;s really not user friendly. I want to be able to<br>
write values in one or two cell(s) and the source code remains like above.<br>
<br>
Is there a way to do this ?<br>
Thanks a lot for your help<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Guvnor-Web-guided-DecisionTable-calls-function-with-parameters-from-cells-values-tp4022296.html" target="_blank">http://drools.46999.n3.nabble.com/Guvnor-Web-guided-DecisionTable-calls-function-with-parameters-from-cells-values-tp4022296.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></blockquote></div><br>