1 Reply Latest reply on Jun 13, 2016 10:06 PM by abhijithumbe

    Problem instantiating a process containing subprocess of different projects

    artemisa28

      Problem instantiating a process containing subprocess of different projects

       

      Hello, to put you in context:

      I create a repository with 3 different projects

      ProjectA, with the processA

      ProjectB, with the processB

      ProjectC, with the processC, which contains as subprocesses the process A and B,

       

      When I set the process in Workbench, on the properties of each subprocesses, in the "element called" field, if finds the processA and processB.

      When ProjectC is deployed, its well deployed.

       

      The problem happens when I want to instantiate from the startup form, displays the following message:

       

      Any suggestions on how to solve this problem?, I tried bpms bvwft6.2 with eap-6.4

       

      from now thanks!

        • 1. Re: Problem instantiating a process containing subprocess of different projects
          abhijithumbe

          Try with these steps:

          1. Create Reusable Project(ProjectA,ProjectB), which will include Reusable sub processes(processA,processB).Make sure that the kbase and ksession configured for this project will not be default.

          =============kmodule.xml=============

          <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;

          <kbase name="kbase" default="false" eventProcessingMode="stream" equalsBehavior="identity" packages="*">

          <ksession name="ksession" type="stateful" default="false" clockType="realtime"/>

          </kbase>

          </kmodule>

          =======================================

          2. Create Parent Project(ProjectC), which will include Parent process, make sure that the kbase and ksession configured for this project will be default and it include kbase of ProjectA & ProjectB.

           

          =============kmodule.xml=============

          <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;

          <kbase name="kbase-top" default="true" eventProcessingMode="stream" equalsBehavior="identity" packages="*" includes="kbase">

          <ksession name="ksession-top" type="stateful" default="true" clockType="realtime"/>

          </kbase>

          </kmodule>

          ======================================

          3. Edit pom.xml of this Parent project and add dependency of the ReUsable projects(ProjectA,ProjectB).

          4. Alter kmodule.xml of Parent project so it includes the knowledge base of the ReUsable project - please notice the keyword "includes" in the snippet above.

           

          Hope it helps.