cancel
Showing results for 
Search instead for 
Did you mean: 

Business Key in a Call Activity

brunopalaoro
Champ in-the-making
Champ in-the-making
Hello.

I have a process that uses a call-activity with multiple instances. Everything works fine, but I'd like to know if it's possible to give a business key to the sub-process started in the call-activity, given that it's another process instance.

Is it possible?

Thanks!
5 REPLIES 5

trademak
Star Contributor
Star Contributor
Good feature request. Right now it's not possible yet, but would be a good addition. Could you create a JIRA issue?

Best regards,

davidnguyen
Champ in-the-making
Champ in-the-making
Hi,

in Activiti 5.13, the business key on the called process is null. What would be the best way to link the sub process instance to its parent?

mikebrown01
Champ in-the-making
Champ in-the-making
I just went through this.

Here is what I found
1) Use process variables to hold the business key
2) I believe business keys must be unique per business process so copying parent to sub process will cause an unique key violation in the db
3) Use an Event Listeners to copy the business key to a process variable

I posted the complete solution here
http://forums.activiti.org/content/get-all-active-tasks-including-sub-process-tasks

ssun
Champ on-the-rise
Champ on-the-rise
I think No.2 is not correct. You can have multiple process instances with same businessKey if they are different process definitions.
Thanks for the event listener copy trick though. Will try it out.

funvin
Champ in-the-making
Champ in-the-making
About No. 2, I did not find any constraint in db about business key. I even verified manually, and no such constraint exists.

Here's another discussion about dropping these constraints, but the bug filed here was resolved as won't fix, so I am not sure if it was actually "fixed" in any later versions. I rather agree with won't fix and would like to have that constraint in place: http://forums.activiti.org/content/about-process-instance-business-key

_vinay_ @ zulily