You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fd1c4fc
Browse filesBrowse the repository at this point in the historyBrowse files
Remove historic entity link orphans on task, process and case deletion
Historic entity-link cleanup only deleted rows where the deleted entity
appeared as the SCOPE_ID_, leaving orphan rows where it appeared as the
REFERENCE_SCOPE_ID_. Subsequent reads of those links could return entries
pointing at scopes that no longer exist.
Add deleteHistoricEntityLinksByScopeIdOrReferenceScopeIdAndScopeType and
bulkDeleteHistoricEntityLinksForScopeTypeAndScopeIdsOrReferenceScopeIds
on HistoricEntityLinkService and use them from
TaskHelper#deleteHistoricTask (BPMN and CMMN, single and bulk),
DefaultHistoryManager#recordProcessInstanceDeleted /
recordBulkDeleteProcessInstances,
DefaultCmmnHistoryManager#recordHistoricCaseInstanceDeleted, and
CmmnHistoryHelper#bulkDeleteHistoricCaseInstances. A single SQL delete
now removes every row mentioning the deleted entity in either direction.
Copy file name to clipboardExpand all lines: modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/history/DefaultCmmnHistoryManager.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ public void recordHistoricCaseInstanceDeleted(String caseInstanceId, String tena
213
213
214
214
if (cmmnEngineConfiguration.isEnableEntityLinks()) {
Copy file name to clipboardExpand all lines: modules/flowable-engine/src/test/java/org/flowable/engine/test/history/BulkDeleteHistoricProcessInstanceTest.java
+98Lines changed: 98 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -456,6 +456,104 @@ public List<HistoricEntityLink> execute(CommandContext commandContext) {
Copy file name to clipboardExpand all lines: modules/flowable-entitylink-service-api/src/main/java/org/flowable/entitylink/api/history/HistoricEntityLinkService.java
0 commit comments