[jboss-user] [jBPM] - Rejection from task to previous tasks

HuiSheng Xu do-not-reply at jboss.com
Sun Jul 18 22:06:57 EDT 2010


HuiSheng Xu [http://community.jboss.org/people/rebody] replied to the discussion

"Rejection from task to previous tasks"

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

--------------------------------------------------------------
Hi Jim,

The rollback feature is very hard to implement in process engine,  because there would be too many situations to consider about.  If it is necessary in your project, you could achieve this feature by yourself.

First get related task.  cast it from Task to TaskImpl.  invoke taskImpl.setSignalling(false); and completeTask(taskImpl.getId())

Second find the target activity.  you could use processDefinition.getActivity(activityName).

Third move execution to target activity. execution.moveTo(activity);

At last create new task, by invoking activity.getActivityBehaviour().execute(execute);

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553205#553205]

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/20100718/e380fab3/attachment.html 


More information about the jboss-user mailing list