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

Error when undeploying ProcessApplication with CMMN and DMN disabled

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.8.0
    • Fix Version/s: 7.10.0, 7.8.7, 7.9.1, 7.10.0-alpha1
    • Component/s: engine
    • Labels:
      None

      Description

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

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: