Hi,
I wanted to know if it is possible to precompile rules/flows and load
them on demand?
Currently i am using the following code:
*KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
for (String file : files) {
//(missing code) get files from directory and add them to
KnowledgeBuilder (source files - rules and flows)
kbuilder.add(ResourceFactory.newFileResource(file), type);
}
*
* private KnowledgeBase kb =
KnowledgeBaseFactory.newKnowledgeBase();
kb.addKnowledgePackages(kbuilder.getKnowledgePackages());*
*
*
Is there an option to add already precompiled files into KnowledgeBase
and not compile them only during the initialization phase?
Thanks