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?