1 of 1 people found this helpful
would 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
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!