Hi, i want to finish some workitems but it gives exception(please se the codes)
while(col.next()){
if(r_object_id.equals(col.getId("r_object_id").getId())){
IdfId idfid=col.getId("r_object_id");
IdfWorkItem oWorkItem=(IdfWorkItem)session.getObject(idfid);
oWorkItem.acquire();//exception thrown here
oWorkItem.complete();
col.close();
break;
}
}
The exception is:
[DM_WORKFLOW_E_ACTION_NOT_ALLOWED]error: "This operation is not allowed when the state is 'finished' for workitem '4a02372980016a6f'
i understood the problem, the workitem is finished so acquire() method throws exception.My question is: is there any method of
IDfWorkitem that checks if the workitem is finished or not.one more thing, how can i get workitems which are got stucked .i know that this can be done via sql but how?
Best regards.