Flowable Complete a process Instance by code

Can I complete a process from code itself.
Suppose I have a process stuck at a timer job, and I want to complete the process now itself, not executing other elements of the process . Can I do that ?


You can use runtimeService.deleteProcessInstance which deletes the process instance and no other process elements will be further executed.
You still find the deleted process in the history table with an EndTime != null.

Have also a look here: Retain history for terminated process instance


Thanks a lot amporsim