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&...]