Hi,
I’m trying to delete Camunda process instance through JAVA API and it is throwing below error
Caused by: kotlin.NotImplementedError: An operation is not implemented: not implemented
at org.camunda.bpm.extension.rest.adapter.AbstractRuntimeServiceAdapter.deleteProcessInstances(AbstractRuntimeServiceAdapter.kt:291)
Camunda Version: (version 7.17)
sample java code
private org.camunda.bpm.engine.RuntimeService runtimeService;
public WorkbenchServiceClient(@Qualifier("remote") org.camunda.bpm.engine.RuntimeService runtimeService) {
this.runtimeService = runtimeService;
}
@Override
public void deleteProcessInstance(String processInstanceId, String deleteReason) {
List processInstanceIds = new ArrayList<>();
processInstanceIds.add(processInstanceId);
runtimeService.deleteProcessInstances(processInstanceIds, deleteReason, true, true, false);
}
But same is working from direct postman json request
url : https://host:port/engine-rest/process-instance/delete
body: {
“deleteReason” : “Clear”,
“processInstanceIds”: [“90fc4804-5efe-11ed-b40a-0a58ac11152a”],
“skipCustomListeners” : true,
“skipSubprocesses” : true
}
I am able to start process instance by JAVA API and its working fine so not sure what is wrong. Please help