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 ?
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.