Delete process instance


#1

RuntimeService.deleteProcessInstance(String, String)

what should be the string parametrs in it.


#2

Hi,

First parameter: ProcessInstanceId
Second parameter: DeleteReason.


#3

Javadoc is available here: https://docs.camunda.org/javadoc/camunda-bpm-platform/7.7/


#4

Hi,

I also want to use the Engine API to delete all process instances of a specific process definition.
The RuntimeService.deleteProcessInstance(String, String) requires the processInstanceId but I want to delete all active instances. Do I first have to get the list of the instances?

Thx