flowable-engine icon indicating copy to clipboard operation
flowable-engine copied to clipboard

DeadLetterJobEntityImpl updates ACT_RU_JOB in stead of ACT_RU_DEADLETTER_JOB

Open basclaessen opened this issue 3 years ago • 0 comments

Describe the bug When updating an instance of org.flowable.job.service.impl.persistence.entity.DeadLetterJobEntityImpl a database statement containing the ACT_RU_JOB table is executed

08:40:43,770 [main] DEBUG org.flowable.job.service.impl.persistence.entity.DeadLetterJobEntityImpl.updateDeadLetterJob - ==> 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.DeadLetterJobEntityImpl a database statement containing the ACT_RU_DEADLETTER_JOB table is executed

Code

DeadLetterJobEntityImpl deadLetterJob = (DeadLetterJobEntityImpl) managementService.createDeadLetterJobQuery()
        .executionId(childExecution.getId()).singleResult();
deadLetterJob.setProcessDefinitionId(childExecution.getProcessDefinitionId());

Additional context Flowable 6.7.3-SNAPSHOT

basclaessen avatar Aug 29 '22 06:08 basclaessen