AnsweredAssumed Answered

Share Rules across deployments in Activiti 5.13

Question asked by smcardle on Jul 10, 2013
Latest reply on Jul 10, 2013 by frederikheremans1
Hi All

I would like some clarification regarding the deployment of Rules into the ProcessEngine.

I have several BAR files each containing multiple processes each of which use zero or more Rules.
The deployments run fine and the Rules are executed as expected. All is rosy in the process garden :)


The Rules that are deployed in each BAR are repeated in each BAR i.e. rules are used by different processes packaged in different BAR's.
I have a common set of Rules that I would like to deploy independently, just once, as independent DRL files, so that the deployed processes in the process BAR's can use any of them……

I don't see a way to do this with Activiti because if I deploy the bpmn's and the drl's independently, or the bpmn's packaged in multiple BAR files without the drl's, then suddenly the processes fail to execute stating that the rules cannot be found in the deployment.

Some of these rules are to be modified by Business Analysts at run time so we will monitor changes to the underlying drl files and redeploy on change detected, thus creating a new version of a rule that will be used by future process executions (not existing executions that may not yet have got to the rule in the currently executing process).

So my question is…..

Am I missing something in Activiti that will allow me to deploy the rules independently of the processes? and if so…. how do I do it ?