Community

JBPM-2856 delete sub process instance after it ends

reply from HuiSheng Xu in jBPM Development - View the full discussion

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

Start a new discussion in jBPM Development at Community