[jboss-user] [jBPM] - Re: obsolete id

Francesco Pietrobelli do-not-reply at jboss.com
Thu Sep 8 04:07:35 EDT 2011


Francesco Pietrobelli [http://community.jboss.org/people/francesco.pietrobelli] created the discussion

"Re: obsolete id"

To view the discussion, visit: http://community.jboss.org/message/625434#625434

--------------------------------------------------------------
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
[http://community.jboss.org/message/625434#625434]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110908/08862038/attachment.html 


More information about the jboss-user mailing list