Call Activity: Out Mapping: Dont create variables in parent process if source returns null?


#1

Is it possible to configure the process so when a call activity has out mappings and the sub-process does not create the variables, the out mapping does not create null variables in the parent process?


#2

Hi @StephenOTT,

in case of using the target attribute of the camunda:out element, a variable is always created even if the source attribute has a null value. Is variables="all" what you are looking for? This attribute passes all subprocess variables to the parent process.

...
<camunda:out variables="all" />
...

Does this answer your question?

Cheers,
Tassilo


#3

In this case I do not want to return all variables. But I only want to return the variable if it has a value/if it was created in the sub-process


#4

As far as I know this is not possible just with the out mapping feature.
Feel free to create a feature request for that in our jira.


#6

Thanks! https://app.camunda.com/jira/browse/CAM-8230