forked from camunda/camunda-bpm-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(engine): when dmn is disabled do not delete dmn deployments
* This commit fixes a bug related to DMN. When DMN is disabled, there shouldn't be any operations to the related DMN tables. However, when a Process Application is undeployed, and DMN is disabled, the undeployment will attempt to delete the Decision Requirements Definitions as well. This will result in an exception (missing table). * Furthermore, the CmmnModelInstanceCache will also attempt to query Decision Definitions on undeploy. This is also fixed here. Related to CAM-13205, closes camunda#1365, camunda#1459
- Loading branch information
1 parent
ecb76ee
commit 1848980
Showing
5 changed files
with
115 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ne/src/test/java/org/camunda/bpm/application/impl/embedded/TestApplicationWithoutDmn.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH | ||
* under one or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information regarding copyright | ||
* ownership. Camunda licenses this file to you under the Apache License, | ||
* Version 2.0; you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.camunda.bpm.application.impl.embedded; | ||
|
||
import org.camunda.bpm.application.ProcessApplication; | ||
import org.camunda.bpm.application.impl.EmbeddedProcessApplication; | ||
|
||
/** | ||
* @author Daniel Meyer | ||
* | ||
*/ | ||
@ProcessApplication( | ||
name="test-app", | ||
deploymentDescriptors={"org/camunda/bpm/application/impl/embedded/deployment-without-dmn.xml"} | ||
) | ||
public class TestApplicationWithoutDmn extends EmbeddedProcessApplication { | ||
public TestApplicationWithoutDmn() { | ||
setDefaultDeployToEngineName("embeddedEngine"); | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...e/src/test/resources/org/camunda/bpm/application/impl/embedded/deployment-without-dmn.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<process-application | ||
xmlns="http://www.camunda.org/schema/1.0/ProcessApplication" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.camunda.org/schema/1.0/ProcessApplication http://www.camunda.org/schema/1.0/ProcessApplication "> | ||
|
||
<process-engine name="embeddedEngine"> | ||
|
||
<configuration>org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration</configuration> | ||
|
||
<properties> | ||
<property name="jdbcUrl">jdbc:h2:mem:embeddedEngine</property> | ||
<property name="jobExecutorDeploymentAware">true</property> | ||
<property name="jobExecutorPreferTimerJobs">true</property> | ||
<property name="jobExecutorAcquireByDueDate">true</property> | ||
<property name="jdbcMaxActiveConnections">5</property> | ||
<property name="dmnEnabled">false</property> | ||
</properties> | ||
|
||
</process-engine> | ||
|
||
<process-archive name="pa1"> | ||
|
||
<resource>org/camunda/bpm/application/impl/embedded/StartToEndTest.testStartToEnd.bpmn20.xml</resource> | ||
|
||
<properties> | ||
<property name="isScanForProcessDefinitions">false</property> | ||
<property name="isDeleteUponUndeploy">true</property> | ||
</properties> | ||
|
||
</process-archive> | ||
|
||
</process-application> |