JBoss Community

Re: obsolete id

created by Francesco Pietrobelli in jBPM - View the full discussion

yep... this is very strange!!!

 

are you sure to use org.jbpm.workflow.instance.WorkflowProcessInstance? because the code for  HumanTaskHandler that i'am actually using with jBPM5.1 is:

 

 

public void executeWorkItem(WorkItem item, WorkItemManager manager) {
        WorkflowProcessInstance currentProcess = (WorkflowProcessInstance) ksession
                .getProcessInstance(item.getProcessInstanceId());
        if (currentProcess == null) {
            log.error("Can't find current process instance relative to " + item);
            manager.abortWorkItem(item.getId());
            return;
        }
 
        HumanTaskNodeInstance currentNode = (HumanTaskNodeInstance) JbpmUtility
                .findNodeInstance(item.getId(), currentProcess);
        if (currentNode == null) {
            log.error("Can't find current node instance relative to " + item);
            manager.abortWorkItem(item.getId());
            return;
        }
     ...     
     ...
}

Reply to this message by going to Community

Start a new discussion in jBPM at Community