public boolean deleteProcessInstance(String processInstanceId, boolean cascade) {
return commandExecutor.execute(new DeleteProcessInstanceByInstanceIdCmd(processInstanceId, cascade));
}
public boolean deleteProcessInstance(String processDefinitionKey, String businessKey, boolean cascade) {
return commandExecutor.execute(new DeleteProcessInstanceByInstanceIdAndDefKeyCmd(processDefinitionKey, businessKey, cascade));
}