Created process not passed? (scope issue?, why?)

Hi, I have added a variable to the execution, through a Service task listener, that should be passed to the next process through an Intermediate thrown event. However, the created process variable is never passed.
Why not?
I thought it has something to do with scope, but I do not see why/how.
Details:

===The added variable:

<bpmn:serviceTask id="ServiceTask_0ligfzn" name="Reject Deviation" camunda:expression="${wrapperDelegateService.executeWithReturn(&#39;direct:rejectDeviation&#39;, execution)}">
  <bpmn:extensionElements>
    <camunda:inputOutput>
      <camunda:inputParameter name="reason">${deviationApprovalRationale}</camunda:inputParameter>
      <camunda:inputParameter name="deployedControlId">${deployedControlId}</camunda:inputParameter>
        <camunda:inputParameter name="evidencesLOD2">${deviationEvidencesLOD2}</camunda:inputParameter>
    </camunda:inputOutput>
      <camunda:executionListener expression="${execution.setVariable(&#39;deviationAccepted&#39;, false)}" event="end"/>

===== And to correlate the message (the intermediate message that is thrown):

${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“Deviation”).setVariables(execution.getVariables()).correlate()}

Can you show the code for this?

Can you also upload your model.

Can you show the code for this?

I don’t understand what you mean as I included the snipped bpmn model that set’s the variable.

Can you also upload your model.

Sorry, I can not do that, it’s of a client.

I solved it.
I made a stupid mistake: the created process variable is passed correctly but was checked on receival in a sub process and the parent process didn’t pass the variable :frowning: