[rules-users] dialect: Java or MVEL

Mark Proctor mproctor at codehaus.org
Mon Sep 24 17:17:30 EDT 2007


Godmar Back wrote:
> Change and re-compile the drool engine code?
> If so, I vote for an enhancement request that let's drool dump the Java files.
>
>   
will consider for 4.2.
> On a separate note, how would I be able to pre-compile sets of rules -
> would this process involve calling builder.getPackage(), then
> serialize the resulting Package? Or would I need to serialize a
> partial rule base? Or either?
>
>   
packages and rulebases are serialisable
> In other words, is the compilation done on
> "builder.addPackageFromDrl()", or done when "builder.getPackage()" is
> called, or is it done when "Rulebase.addPackage()" is called?
>
>   
compilation is done when you call addPackageFromDrl(). getPackage just 
does a bit of maintenance before returning it.
> Thank you for your help.
>
>  - Godmar
>
> On 9/24/07, Mark Proctor <mproctor at codehaus.org> wrote:
>   
>>  There is no .java file, all compilation is in memory. you can, if you
>> change the code and re-compile by hand, dump the resulting template files.
>>
>>  Mark
>>
>>  Godmar Back wrote:
>>  BTW, when using Java, is there a way to save the .java files created
>> by the compiler? I would like to understand the specific
>> environment/scope in which consequences are compiled. Right now, if
>> something goes wrong, the .java are deleted right away. I looked at
>> PackageBuilderOptions, but didn't see anything there.
>>
>>  - Godmar
>>
>> On 9/24/07, Mark Proctor <mproctor at codehaus.org> wrote:
>>
>>
>>  Java is more mature in tooling and implementation and is still currently
>> the default implementation and the recommended one if you are not sure.
>> MVEL will eventually become the default dialect when it matures, its
>> advantage is in the simpler language it provides, which helps make rules
>> easier to read and write. It can also operate in reflection mode, which
>> can really help for large rule based systems that have perm gen issues.
>>
>> Mark
>> ekke wrote:
>>
>>
>>  can someone tell me, when to use java or mvel as dialect ?
>>
>> I've experienced that in some cases inside the drl editor using java
>> gives me more context-help then using mvel
>>
>> but: what can I do with java and not with mvel
>> and what advantages has mvel compared with java
>>
>> which dialect is more performant ?
>>
>> thx for infos from insiders
>>
>> ekke
>>
>>
>>  _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>  _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>>     
> _______________________________________________
> 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/20070924/290906b7/attachment.html 


More information about the rules-users mailing list