AnsweredAssumed Answered

Setting deployment mode in CDI Deployment Environment

Question asked by clp207 on Oct 2, 2015
Latest reply on Oct 2, 2015 by clp207
I am deploying my processes in a CDI application like this

      CdiJtaProcessEngineConfiguration processEngineConfiguration = new CdiJtaProcessEngineConfiguration();
      processEngineConfiguration.setProcessEngineName("default");
      processEngineConfiguration.setDataSourceJndiName("java:jboss/datasources/activitiDS");
      …      
      processEngine = processEngineConfiguration.buildProcessEngine();
               
      RepositoryService repositoryService = processEngine.getRepositoryService();
      repositoryService.createDeployment()
        .addClasspathResource("Process.bpmn").enableDuplicateFiltering()
        .deploy();

Everytime I deploy my war, a new process version is deployed. The documentation talks about a deploymentMode for the spring process engine configuration. How do I set a deployment mode for the CdiJta process engine configuration?

Outcomes