AnsweredAssumed Answered

Cancel Workflow

Question asked by luisalves00 on May 27, 2011
Latest reply on May 27, 2011 by luisalves00
activiti Contains this record:

SELECT * FROM activiti.act_hi_procinst a WHERE PROC_INST_ID_=3701;   //ID_ is the same

then I do:
engine.getRuntimeService().deleteProcessInstance(String.valueOf(authorizationRequestObject.getIdWorkflow()),"Deleted");
          __________________________

the ID comes from (an execution):

//set the id of the workflow
pa.setIdWorkflow(BigInteger.valueOf(Long.valueOf(execution.getProcessInstanceId())));

throws this exception

15:28:00,507 ERROR AuthenticationController:46 - No process instance found for id '3701'


any idea?

Outcomes