[rules-users] How to write a rule that fires when it matches against specific facts in working memory.

Wolfgang Laun wolfgang.laun at gmail.com
Sun Feb 6 02:40:38 EST 2011


I haven't tried this, but it ought to work: put
   dialect "mvel";
into the cell next to the cell keyed Functions, with or without actual
function. Code
in there is just copied.

But, apart from some simpler coding in the code snippets, using MVEL is not
a "must have".

-W


On 5 February 2011 18:12, groovenarula <gnarula1 at la-z-boy.com> wrote:

>
> Edson/Wolfgang,
>
> Thanks to your suggestions, I've got this working the way I need it using
> rules defined in a .drl file. I think I have just one hurdle left before I
> start working out how to get it working through decision tables - and that
> is how to specific 'mvel' dialect for decision tables.
>
> Edson as you pointed out, in order for me to send the value of $param to
> the
> accumulator, I should use mvel to create a list of the parameters (the
> $param and the fact being matched). I tried looking for ways to specify
> mvel
> and couldn't find how to set the dialect for rules defined in decision
> tables.
>
> Thanks,
> Gurvinder
>
> --
> View this message in context:
> 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
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110206/0440e553/attachment.html 


More information about the rules-users mailing list