AnsweredAssumed Answered

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

Question asked by simontilbrook on Dec 23, 2014
Latest reply on May 3, 2016 by jbarrez
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?