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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to