thanks for the quick response!
We also considered the approach with the second process engine, which shares the database with the first one (the different approach you described). It would have a some drawbacks:
* Starting a new process instance in the webapp: The webapp does not have the classes (Java delegates) which are referenced by the ServiceTasks.
* Listeners: If we re-assign a UserTask in camunda-cockpit, the (cdi-)listener for e.g. BusinessProcessEventType.ASSIGN_TASK will not be triggered in the application with the 'original' process engine.
* New cockpit plugins could not use (CDI) services provided by our application.
The approach we initially considered was to split frontend and backend and integrate the backend into the backend of our application. The frontend will be deployed independently. But if this is not possible without a significant amount of gluecode, it is not really a good alternative ;) At the latest we will get a problem when we want to upgrade to a newer version of cockpit.
Alternatively we could integrate cockpit as dependency to our application (ear). So the cockpit could find the running process engine.
Best regards,
Stefan