CDI Injection for process variables does not work correctly in call stacks including other processes

Description

Situation:

  • JavaDelegate

  • Inject variables (BusinessProcess or processVariables)

  • Changes on the variables are collected temporarily and flushed using a Interceptor at the end of the delegate execution

  • If you call some other process from within the delegate which itself has a delegate, this delegate does the flush, getting all your changed from the first process (WRONG).

  • No stack is used (as with the ExectionContext itself)

Workaround:

  • Call the other proces async

  • Use DelegateExecution for variables

Environment

None

Assignee

Daniel Meyer (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure