I haven&#39;t tried this, but it ought to work: put<br>   dialect &quot;mvel&quot;;<br>into the cell next to the cell keyed Functions, with or without actual function. Code<br>in there is just copied.<br><br>But, apart from some simpler coding in the code snippets, using MVEL is not<br>
a &quot;must have&quot;.<br><br>-W<br><br><br><div class="gmail_quote">On 5 February 2011 18:12, groovenarula <span dir="ltr">&lt;<a href="mailto:gnarula1@la-z-boy.com">gnarula1@la-z-boy.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Edson/Wolfgang,<br>
<br>
Thanks to your suggestions, I&#39;ve got this working the way I need it using<br>
rules defined in a .drl file. I think I have just one hurdle left before I<br>
start working out how to get it working through decision tables - and that<br>
is how to specific &#39;mvel&#39; dialect for decision tables.<br>
<br>
Edson as you pointed out, in order for me to send the value of $param to the<br>
accumulator, I should use mvel to create a list of the parameters (the<br>
$param and the fact being matched). I tried looking for ways to specify mvel<br>
and couldn&#39;t find how to set the dialect for rules defined in decision<br>
tables.<br>
<br>
Thanks,<br>
Gurvinder<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/How-to-write-a-rule-that-fires-when-it-matches-against-specific-facts-in-working-memory-tp2294599p2432302.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/How-to-write-a-rule-that-fires-when-it-matches-against-specific-facts-in-working-memory-tp2294599p2432302.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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><br>
</font></blockquote></div><br>