[rules-users] what is "pluggable dialects"
Mark Proctor
mproctor at codehaus.org
Thu Jan 10 12:07:58 EST 2008
jack wu wrote:
> i read the documentation saying drools 4.x supports pluggable
> dialects, but i can't find anything else that explains what it is. i
> think by default i am using java dialect. and there is a MVEL dialect.
> is that it?
>
> i am trying to see if there is a way to not use java beans as fact
> objects.
>
> i have been looking to the MVEL website where they have a sample like
> this:
> Map vars = new HashMap();
> vars.put("x", new Integer(5));
> vars.put("y", new Integer(10));
>
> Integer result = (Integer) MVEL.eval("x * y", vars);
> my question is if i use MVEL dialect, can i pass in a Map similar to
> the above for fact objects? Thanks.
Dialects make no difference to what you can assert. The dialect is
simple the lanage used to execute returnValue, inlne-evals, evals and
consequences. You can choose Java or MVEL, or plugin your own.
>
> jack.
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20080110/bb8a8942/attachment.html
More information about the rules-users
mailing list