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

    Alternative to add Process at Runtime in JBPM6

    arpitvkarma

      Hi,

       

      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);

      this.kbase.addKnowledgePackages(kbuilder.getKnowledgePackages());

       

      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.

        • 1. Re: Alternative to add Process at Runtime in JBPM6
          arpitvkarma

          The only possible thing I could find right now is to use drools knowledge-api which opens an interface to jbpm's older api's (KnowledgeBase).

          Thus no changes in Code Base (sadly can not use all the new things jbpm6 has to offer) until there is a concrete API to remove and add Processes dynamically.