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);
          }
      }
      
      (...)
      

            Assignee:
            Nikola Koevski
            Reporter:
            Dennis Hoersch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: