flowable-engine
flowable-engine copied to clipboard
SuspendedJobEntityImpl updates ACT_RU_JOB in stead of ACT_RU_SUSPENDED_JOB
Describe the bug When updating an instance of org.flowable.job.service.impl.persistence.entity.SuspendedJobEntityImpl a database statement containing the ACT_RU_JOB table is executed
09:10:03,543 [main] DEBUG org.flowable.job.service.impl.persistence.entity.SuspendedJobEntityImpl.updateSuspendedJob - ==> Preparing: update ACT_RU_JOB SET REV_ = ?, PROC_DEF_ID_ = ? where ID_= ? and REV_ = ?
Expected behavior When updating an instance of org.flowable.job.service.impl.persistence.entity.SuspendedJobEntityImpl a database statement containing the ACT_RU_SUSPENDED_JOB table is executed
Code
SuspendedJobEntityImpl suspendedJob = (SuspendedJobEntityImpl) managementService.createSuspendedJobQuery()
.executionId(childExecution.getId()).singleResult();
suspendedJob.setProcessInstanceId(childExecution.getProcessInstanceId());
Additional context Flowable 6.7.3-SNAPSHOT