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