So the camunda cockpit already has exactly the functionality I need via the "cancel running process instance" button / rest call. This uses the RuntimeServer.deleteProcessInstance method internally, which could take a second string giving the deletion reason. It would be useful for me to expose this second param also via the rest api, to document why this processes were canceled.
I noticed that there are two different commands, DeleteProcessInstanceCmd and FoxDeleteProcessInstanceCmd, what is the difference between these two?
Thanks,
Jörn