cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between process states - finished and aborted

behemot1
Champ in-the-making
Champ in-the-making
Hi!

Is there any simple way to find out (using api) what is the current state of process ?
A process can be started or finished. Finishing process can be done
normally by finishing all including tasks or manually by calling deleteProcessInstance method.
How can I difference one from another ?

Regards,
WP
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
The deleteReason in the HistoricProcessInstance is different. When the process ends normall, the deletereason will be "completed". If deleted (without reason) it's "deleted" or the reasong given in the delete call.