I’m running a Spring Boot web app which is deployed as a war, inside I’ve got flowable running as a service performing some of the business logic…
- When the server starts up, the bpmn files are deployed from the resources directory of the war and show up in the DB.
- When the business logic is run, it executes specific processes by signal… my code for executing the flowable business logic looks something like this:
My issue is when a second server running the same web app starts up, the war is deployed and also has a copy of the BPMN files which get deployed to the DB.
- The BPMN are assigned a different deployment id than the first server
- When starting the processes by the signal above, I can see that I’m querying against all processes (not just the ones belonging to my engine)
Looking at the documentation, I was considering implementing scope at the bpmn xml level:
Is this the best approach?
Maybe I could ensure my BPMN files are only deployed once to the database and read by all servers (i.e. if they have already been deployed, don’t re-deploy them under a different deployment id)
Not sure how to do this though