[jboss-user] [jBPM Development] - JBPM-2856 delete sub process instance after it ends

HuiSheng Xu do-not-reply at jboss.com
Fri May 14 22:20:50 EDT 2010


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

"JBPM-2856 delete sub process instance after it ends"

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

--------------------------------------------------------------
Hi Maciej,

Thank you for reviewing my patch.

But I am not clear what you point to.  In the signal() in SubProcessActivity, it has to get related subProcessInstance first, and cancel the bid-relationship between superProcessInstance and subProcessInstance, otherwise we can't delete subprocessInstance directly,  Database will throw a FK related exception.  Do you mean this?

And you said 'deleteProcessInstance method of DBSession should take care of deleting  remaining subprocess instances',  do you mean that we needn't delete the sub processInstance after SubProcessActivity signaled, but could leave them alive until the end of superProcessInstance ended, so the deleteProcessInstance could delete them all?

If you could show more details, it will be very appreciate.  Thank you once again.

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

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100514/2efe017a/attachment-0001.html 


More information about the jboss-user mailing list