1 Reply Latest reply on Jun 9, 2017 4:32 AM by Arpit Vishwakarma

    Alternative to add Process at Runtime in JBPM6

    Arpit Vishwakarma Newbie



      I was using JBPM5 in my Project in which I use to create a KnowledgeBase and add Process at Runtime as User creates them instead of creating KnowledgeBase again and again like:


      final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

      kbuilder.add(ResourceFactory.newInputStreamResource(bis), ResourceType.BPMN2);



      Now, KnowledgeBase is replaced with KieBase and it is encouraged to use RuntimeManager in JBPM6, so what should be the replacement for the above code.

      I searched through the documentation but could not find anything.