Find deleted process Instance with java API

hi every one.is there a way to find deleted process instances by admin with java API??
i mean i want to find list of process instances that admin or cockpit user has deleted manually.thanks

Hi @mansour_ashtari,

you can query for process instances that has been externally terminated (e.g. by REST call) with historyService.createHistoricProcessInstanceQuery().externallyTerminated().list();

Cheers,
Miklas

thanks miklas