diff --git a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java index 6524a1bfa80..fa92b5da877 100644 --- a/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java +++ b/modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/db/EntityDependencyOrder.java @@ -29,6 +29,7 @@ import org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntityImpl; import org.flowable.cmmn.engine.impl.persistence.entity.SentryPartInstanceEntityImpl; import org.flowable.common.engine.impl.persistence.entity.ByteArrayEntityImpl; +import org.flowable.common.engine.impl.persistence.entity.ChangeLogEntityImpl; import org.flowable.common.engine.impl.persistence.entity.Entity; import org.flowable.common.engine.impl.persistence.entity.PropertyEntityImpl; import org.flowable.entitylink.service.impl.persistence.entity.EntityLinkEntityImpl; @@ -63,6 +64,7 @@ public class EntityDependencyOrder { static { DELETE_ORDER.add(PropertyEntityImpl.class); + DELETE_ORDER.add(ChangeLogEntityImpl.class); DELETE_ORDER.add(BatchPartEntityImpl.class); DELETE_ORDER.add(BatchEntityImpl.class); DELETE_ORDER.add(JobEntityImpl.class); diff --git a/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java b/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java index 2b9bada10ad..5c3726852f6 100644 --- a/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java +++ b/modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/db/EntityDependencyOrder.java @@ -16,6 +16,7 @@ import java.util.Collections; import java.util.List; +import org.flowable.common.engine.impl.persistence.entity.ChangeLogEntityImpl; import org.flowable.common.engine.impl.persistence.entity.Entity; import org.flowable.common.engine.impl.persistence.entity.PropertyEntityImpl; import org.flowable.dmn.engine.impl.persistence.entity.DecisionEntityImpl; @@ -31,6 +32,7 @@ public class EntityDependencyOrder { static { DELETE_ORDER.add(PropertyEntityImpl.class); + DELETE_ORDER.add(ChangeLogEntityImpl.class); DELETE_ORDER.add(HistoricDecisionExecutionEntityImpl.class); DELETE_ORDER.add(DmnResourceEntityImpl.class); DELETE_ORDER.add(DmnDeploymentEntityImpl.class); diff --git a/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml b/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml index e5a7f456686..4e91d976363 100644 --- a/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml +++ b/modules/flowable-engine-common/src/main/resources/org/flowable/common/db/mapping/entity/ChangeLog.xml @@ -7,7 +7,7 @@ - +