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

markricard markricard at gmail.com
Wed Apr 28 12:53:12 EDT 2010


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.



More information about the rules-users mailing list