How to get CommandExecutor in 7.16.0

Now I want to listen to the timeout action when the non-interrupting task times out when the process is running, and set the task’s status as “timed out” here, but the method is not provided in deleteTask of taskService, so I want to get the CommandExecutor to complete the action.

Looking forward to your reply.


I’ve got this object, but during processing I get “The task cannot be deleted because is part of a running process” error.