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.