[jboss-user] [jBPM] - Re: Issue in leavenode from a Task node on task-create event

Yogita Bartake do-not-reply at jboss.com
Wed Feb 2 04:37:37 EST 2011

Yogita Bartake [http://community.jboss.org/people/YogitaBartake] created the discussion

"Re: Issue in leavenode from a Task node on task-create event"

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

Thanks for the Reply  :) 

We tried using node for automatic activities but our application needs to show the history of what path a process execution has taken. With node we did not find any jbpm table which would show the log of executed nodes.
So we took this approach...If u know of any other solution for this please do let me know.

Well, we tried using taskInstance.end() in the Action handler but it gave Null pointer exception since in the handler was being called on a task-create event. Then we tried using the same in the class that implements AssignmentHandler. In this case what happens is that the execution moves ahead from the task till it gets user activity(for which the AssignmentHandler class is not mapped) but the execution starts again from the 1st automatic activity from where we are doing taskInstance.end() and goes in an infinite loop.


public class TaskAssignHandler implements AssignmentHandler
 private static final long serialVersionUID = 1L;
 public void assign(Assignable assignable, ExecutionContext executionContext)

I am assuming here that the AssignmentHandler(which I have mapped in that Handler Property of the task) class gets called on task-assign event and by this time the task has got created for me to end it from here. Please correct me if I my assumption is incorrect.

Thanks a lot!!  :) 



Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list