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(a)gmail.com>
Sent: Apr 28, 2010 11:53 AM
To: rules-users(a)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-javas...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users