Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9057

Error when undeploying ProcessApplication with CMMN and DMN disabled

XMLWordPrintable

      The CMMN / DMN DB tables don't exists, when it is disabled in the application/configuration.

      While undeploying a ProcessApplication the method DeploymentCache.removeDeployment() is called which removes definitions etc.This tries to access the not-existing tables and crashes with SQL errors.

      -----------------------------------------------------

      It seams that it works fine when adding a check like so:

      DeploymentCache.java
      (...)
      
      public void removeDeployment(String deploymentId) {
          bpmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId);
          if(Context.getProcessEngineConfiguration().isCmmnEnabled()) {
              cmmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId);
          }
          if(Context.getProcessEngineConfiguration().isDmnEnabled()) {
              dmnModelInstanceCache.removeAllDefinitionsByDeploymentId(deploymentId);
              removeAllDecisionRequirementsDefinitionsByDeploymentId(deploymentId);
          }
      }
      
      (...)
      

        This is the controller panel for Smart Panels app

              nikola.koevski Nikola Koevski
              dhoersch Dennis Hoersch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: