[rules-users] Precompile Rules & Flows

Yaniv Itzhaki iyaniv at gmail.com
Thu Nov 18 08:00:41 EST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101118/961f41d0/attachment.html 


More information about the rules-users mailing list