Sometimes you want to reuse the assets which you are already creating, and “import” it on multiple other projects. We can use that on RHPAM (or its opensource version, which is jBPM) because the output of it is actually a kjar (knowledge jar) file, which is just a jar library where you can import it by using a simple maven.
For this example im creating two different project, Project 01 and Project 02. Where Project 01 have a workflow that will import a Decision Table which is created on Project 02. It is basically a simple calculator to measure how wealthy someone is, based on one’s salary.
“Default” option should be un-check for KIE bases and KIE session on Project02.
The last step for Project02 is to build, and install it.
Make sure you check “Default” option for KIE bases and KIE session on Project01.
For complete code, can be accessed here.