05-27-2011 10:33 AM
SELECT * FROM activiti.act_hi_procinst a WHERE PROC_INST_ID_=3701; //ID_ is the sameengine.getRuntimeService().deleteProcessInstance(String.valueOf(authorizationRequestObject.getIdWorkflow()),"Deleted"); __________________________
//set the id of the workflow
pa.setIdWorkflow(BigInteger.valueOf(Long.valueOf(execution.getProcessInstanceId())));05-27-2011 11:00 AM
try {
engine.getHistoryService().deleteHistoricProcessInstance(String.valueOf(authorizationRequestObject.getIdWorkflow()));
} catch (Throwable t) {
engine.getRuntimeService().deleteProcessInstance(String.valueOf(authorizationRequestObject.getIdWorkflow()), "Deleted");
engine.getHistoryService().deleteHistoricProcessInstance(String.valueOf(authorizationRequestObject.getIdWorkflow()));
}Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.