CMMN TaskEntity Insertion causes Foreign key CASE_EXECUTION_ID_ violation

Hello experts,

I have CMMN with Stage with 1 humanTask in it. Stage’s sentry has exitCriteria to terminate the stage.

When I instantiate the case, then during inserting task with taskId into ACT_RU_TASK table, I see that it refers to foreign key CASE_EXECUTION_ID_ which does not exists; may be due to removal of CaseExecutionEntity due to triggering of sentry condition.

Any idea how to solve this issue?

Attached CMMN file -
diagram_1.cmmn (5.6 KB)