AnsweredAssumed Answered

Duplicate Deployment of Activiti processes

Question asked by jatz on Jun 3, 2013
Latest reply on Sep 15, 2017 by nmorado
When we deploy multiple a WAR file on tomcat from multiple boxes pointing to the same database there seem to be duplicate versions of the same process definition in the ACT_RE_PROCDEF table. The only differemnce seems to be the resource_name_ column which says that the definitions were deployed on different boxes.

My assumption was that the version comparison is based on the bytes in the depolyed bpm file and not the deployment resource file source.

The deployment is done by Spring using ProcessEngineConfiguration and I also have initialized the RuntimeService bean by

@Bean(name = "repositoryService")
public RepositoryService repositoryService() {
      final RepositoryService repositoryService = processEngine.getRepositoryService();
      return repositoryService;

Is there anyway to prevent this duplicate initialization of resources as they are redundant in out table entries?