Retry Task from dead letter job

I have integrated flowable engine with spring boot application , want to re-trigger task manually after it fails after certain retry attempts and moves to dead letter job .
I re-trigger the task using runtimeService.trigger(executionId);
But it executes the next task in the sequence flow and skips the actual failed task.
Not sure how to make the failed task work again

Calling “trigger” on a given execution will do exactly what you are experiencing.
You should be using either the Management Service or JobService to locate the specific failed job and restore it.
Check out the following test:

Hope this helps,
Greg