-
1. Re: Problem instantiating a process containing subprocess of different projects
abhijithumbe Jun 13, 2016 10:06 PM (in response to artemisa28)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.