Category Archives: KieBase

Core Engine :: KieBase :: KJAR Maven Deployment Units

  jBPM provides deployment mechanism that is based entirely on Maven artifacts. These artifacts known as kjars are jar files that include a descriptor for KIE system to provide KieBase and KieSession. A KIE project or module is a Maven … Continue reading

Posted in Core Engine, jBPM, KieBase | Leave a comment

Core Engine :: KieBase :: KieRepository-KieModule Example

  KieRepository is a singleton acting as a repository for all the available KieModules regardless if they are stored in the maven repository or programmatically built by the user. KieModule is a container of all the resources necessary to define … Continue reading

Posted in Core Engine, jBPM, KieBase | Leave a comment

Core Engine :: KieBase :: KieResources Example

  KieResources is a factory that provides Resource implementations for the desired IO resource. Example structure: Example: public class KieResourcesTest { //use your maven repository path static final String MAVEN_REPO = “C:/zjc/m339repo”; @Test public void testResourcesKJAR() { KieServices ks = … Continue reading

Posted in Core Engine, jBPM, KieBase | Leave a comment

Core Engine :: KieBase :: KnowledgeBuilder-ResourceType Example

  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: public class AppBpmn2 { public static final void main(String[] args) throws Exception { KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(); kbuilder.add(ResourceFactory.newClassPathResource(“process/script.bpmn2”), ResourceType.BPMN2); KieBase kbase … Continue reading

Posted in Core Engine, jBPM, KieBase | Leave a comment

Core Engine :: KieBase :: KnowledgeBuilder

  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 … Continue reading

Posted in KieBase | Leave a comment