KieResources is a factory that provides Resource implementations for the desired IO resource. Example structure: Example:

KieResourceKJAR example:   Download KieResourcesTest.zip  

  Download: KnowledgeBuilder-ResourceType.zip Three examples of using org.kie.api.io.ResourceType with KnowledgeBuilder class: ResourceType.BPMN2 ResourceType.DRL ResourceType.DTABLE Structure of the project: ResourceType.BPMN2:

  ResourceType.DRL

  ResourceType.DTABLE

 

  org.kie.internal.builder.KnowledgeBuilder The KnowledgeBuilder is responsible for taking source files, such as a .drl file, a .bpmn2 file or an .xls file, and turning them into a KnowledgePackage of rule and process definitions which a KnowledgeBase can consume. It uses the ResourceType enum to tell…