This content has been marked as final.
Show 1 reply
-
1. Re: Aborting subprocesses
pnairatl Oct 27, 2018 4:23 PM (in response to element.onex)Please try the below code for aborting process
RemoteRuntimeEngine processEngine = RemoteRestRuntimeEngineFactory.newBuilder()
.addDeploymentId(DEPLOYMENT_ID)
.addProcessInstanceId(PROCESS_ID)
.addUserName(USERNAME)
.addPassword(PASSWORD).addUrl(new URL(BPMS_URL)).build()
.newRuntimeEngine();
processEngine.getKieSession().abortProcessInstance(PROCESS_ID);