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

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?

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?


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

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.