[rules-users] Challenge! Using javassist and drools presents an issue with drl

Dave Cracauer dcracauer at earthlink.net
Wed Apr 28 14:34:30 EDT 2010


It sounds like the stated goal is to make things easier for non-developers to write rules. What about a dsl?

What about using a templating language?  I have used velocity in the past for dynamically generating rules based on templates, and I think that there is built in support for templates using mvel.

-----Original Message-----
>From: markricard <markricard at gmail.com>
>Sent: Apr 28, 2010 11:53 AM
>To: rules-users at lists.jboss.org
>Subject: Re: [rules-users] Challenge! Using javassist and drools presents an issue with drl
>
>
>Perhaps there is an easier way to ask this question....
>
>Rather than having to do an 'import' of a class in a drl text file, is there
>a way in the Java code that constructs the KnowledgeBase to via java
>dynamically import any class file required by any drl file that is added?
>
>Instead of the drl having:
>
>import com.foo.Instance;
>rule "Walgreens Test"
>    ....
>
>It just has:
>
>rule "Walgreens Test"
>    ....
>
>
>And in the KnowledgeBuilder does something like this:
>
>KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
>kbuilder.addImport("com.foo.Instance");
>...
>
>
>
>-- 
>View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Challenge-Using-javassist-and-drools-presents-an-issue-with-drl-tp763086p763118.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




More information about the rules-users mailing list