-
1. Re: Accessing the parent/super execution from a subprocess e
kukeltje Aug 12, 2009 5:18 AM (in response to flavio.donze)Maybe you can have a workaround and pass the processInstanceKey as a variable?
-
2. Re: Accessing the parent/super execution from a subprocess e
flavio.donze Aug 12, 2009 8:33 AM (in response to flavio.donze)hey kukeltje
Thanks for the reply.
I had that in mind too but I was wondering if there is an way to access the super process.
Is it an intended behavior of jBPM to block the access? If so, why?
At least there should be a method getSuperProcessId() so I can access the super process using the ExecutionService.
greets -
3. Re: Accessing the parent/super execution from a subprocess e
kukeltje Aug 12, 2009 11:53 AM (in response to flavio.donze)don't think it is intended. just not implemented
-
4. Re: Accessing the parent/super execution from a subprocess e
flavio.donze Aug 13, 2009 6:52 AM (in response to flavio.donze)Thanks kukeltje, added a feature request:
https://jira.jboss.org/jira/browse/JBPM-2485 -
5. Re: Accessing the parent/super execution from a subprocess e
shekharv Aug 13, 2009 4:54 PM (in response to flavio.donze)@flavio.doze
Do you think you can setup a test case? Can you add a log statement to your assignment handler and check what value you are getting for this?
logger.debug(((ExecutionImpl) execution).getSuperProcessExecution().getKey()); -
6. Re: Accessing the parent/super execution from a subprocess e
flavio.donze Aug 14, 2009 2:47 AM (in response to flavio.donze)hi shekharv
That's how I'm getting the key right now and it works fine, but it's an ugly cast.
I would like to have a getSuperProcessExecution() on the OpenExecution interface.
OpenExecution has a method getSubProcessInstance() but no method to access the super ProcessInstance, that's basically the issue here.
greets
flavio -
7. Re: Accessing the parent/super execution from a subprocess e
shekharv Aug 14, 2009 2:31 PM (in response to flavio.donze)What was I thinking! I read multiple posts and then got back to this, so lost context, didn't see that you already had the solution for the timebeing. And yes, that should become part of the API, although I think we should clearly specify that in the JIRA.
:) -
8. Re: Accessing the parent/super execution from a subprocess e
flavio.donze Aug 15, 2009 7:40 AM (in response to flavio.donze)your right the issue is kind of loosely described, I commented the issue.