Skip to content

Commit

Permalink
Use BatchQuery#delete instead of deprecated BatchQuery#deleteWithRela…
Browse files Browse the repository at this point in the history
…teData
  • Loading branch information
filiphr committed Feb 12, 2024
1 parent 7ff37bc commit eab41c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void execute(JobEntity job, String configuration, VariableScope variableS

BatchQuery batchCleaningQuery = cmmnEngineConfiguration.getCmmnHistoryCleaningManager().createBatchCleaningQuery();
if (batchCleaningQuery != null) {
batchCleaningQuery.deleteWithRelatedData();
batchCleaningQuery.delete();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void execute(JobEntity job, String configuration, VariableScope variableS

BatchQuery batchCleaningQuery = processEngineConfiguration.getHistoryCleaningManager().createBatchCleaningQuery();
if (batchCleaningQuery != null) {
batchCleaningQuery.deleteWithRelatedData();
batchCleaningQuery.delete();
}
}

Expand Down

0 comments on commit eab41c2

Please sign in to comment.