cancel
Showing results for 
Search instead for 
Did you mean: 

Variables defined as Dataobjects are not created for processes started by Call Activity

simontilbrook
Champ in-the-making
Champ in-the-making
Using Activiti 5.16 I have noticed that when a process is started via a Call Activity from another process, the only variables created are those which are explicitly mapped in the extensionElements in elements.
However, when the same process is started directly then a variable is created for every dataObject defined for that process.

Is this behaviour deliberate?
I would have thought it was better to always create the variables from the dataObjects, and then just set the values for those variables mapped in the Call Activity. In this way variables which are only needed in the called process will still be available for use.

Is there any way to force the Call Activity to create process variables for all dataObjects in the called process?
4 REPLIES 4

delamotte
Champ in-the-making
Champ in-the-making
Hi,

I think the same thing happens in 5.19.

Is there a reason for that? Is there a way to go around?

Best regards,
Philippe.

jbarrez
Star Contributor
Star Contributor
The only thing that comes in mind is customizing the CallActivityBehaviour…

delamotte
Champ in-the-making
Champ in-the-making
Ok, thanks, I'll try something like that. But is it considered as a normal behaviour? It doesn't seem really logical to me…

jbarrez
Star Contributor
Star Contributor
Note sure, the data objects are a fairly recent addition to the engine.
Imo, the data objects should somehow also be mapped like regular vars. But I agree with you, it would make sense to add that to the call activity