Delete process instance

RuntimeService.deleteProcessInstance(String, String)

what should be the string parametrs in it.

Hi,

First parameter: ProcessInstanceId
Second parameter: DeleteReason.

2 Likes

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

1 Like

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