-
1. Re: Strategy for assigning subprocess execution ID
matrixpooh Mar 4, 2010 2:23 PM (in response to letstalk)1 of 1 people found this helpfulwould processInstance.getParent().getId() work instead?
Also, you can extend org.jbpm.pvm.internal.model::ExecutionImpl and override composeId(). Ultimately org.jbpm.pvm.internal.id.DatabaseIdComposer is the one that creates ids in that format
-
2. Re: Strategy for assigning subprocess execution ID
letstalk Mar 5, 2010 2:56 AM (in response to matrixpooh)Hi Al, I've tried getId() first but it didn't work for my case where subprocess reached timer activity. In this case processInstance.getParent().getId() returns the parent execution which is the execution of the subprocess and it is in the inactive-scope state. This execution, in turn, returns null for parent execution id which is strange, isn't it?
Besides, that's only a part of the problem, my goal is to have all child execution reference the original order id and your second suggestion might just do the trick. I'll try that, thanks a lot!