cancel
Showing results for 
Search instead for 
Did you mean: 

BusinessKey in sub processes

naag
Champ in-the-making
Champ in-the-making
Hi all,

this question came up a few times, but there seems to be no clear solution. When you start a process with a business key, that business key will not be passed on to sub-processes that are called via CallActivity. There's also http://jira.codehaus.org/browse/ACT-853 for that issue, but it's 1 year old. In Activiti 5.10 it seems to be unchanged.

The only workaround I see at the moment is to use a process variable in addition to / as a replacement for the business key. But then I wonder why there's a dedicated business key feature in the API.

Are there any other solutions to pass on the business key?

Thanks 🙂
Peter
5 REPLIES 5

bernd_ruecker
Champ in-the-making
Champ in-the-making
Hi Peter.

Actually the priority for this issue is not very high for us, as you can easily add an execution listener doing what you need (easiest: add it on start-event, check for the parent process, set the business key). You may have to do some casting, but is not an urgent show stopper. For us personally by the way issues of fox enterprise support customers get prioritized 😉

Hope that helps a bit
Cheers
Bernd

naag
Champ in-the-making
Champ in-the-making
Hi Bernd,

thanks a lot for all your replies 🙂 Actually the listener is a good idea and it solves the problem for us. Thanks for the hint!

Regards,
Peter

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Adding a listener works, but is not intuitive…

ray1
Champ in-the-making
Champ in-the-making
Hi Bernd,

thanks a lot for all your replies 🙂 Actually the listener is a good idea and it solves the problem for us. Thanks for the hint!

Regards,
Peter

how to use the listener ? can you give me some hint ?

kafeitu
Champ on-the-rise
Champ on-the-rise
Hi Bernd,

thanks a lot for all your replies 🙂 Actually the listener is a good idea and it solves the problem for us. Thanks for the hint!

Regards,
Peter

how to use the listener ? can you give me some hint ?

add start execution listener to subprocess