Closed lbilger closed 1 year ago
Could you please check what kind of sender you are using? tx
or tx-job
?
We are using the tx
sender.
I could reproduce the problem and found a work-around to your problem. For now, I see no way to fix this bug (no matter what sender you are using), but you can use a different listener to modify your variables.
I added tests to the collector test suite demonstrating it and updated the docs. Please check my changes introduced in e2a8d7d and also check the warning at the end of the Enrichment Chapter
I'll mark this issue with WONT since a workaround is present and I have no smart idea how to implement it in a better way. If you have an idea - please don't hesitate to provide me a hint.
Steps to reproduce
TaskCollectorITest
:with the following task listener implementation:
Expected behaviour
The local variables set by the task listener should be visible in the command.
Actual behaviour
They are not.
This is due to the workaround for historic commands in
TaskVariableLoader
. The variables are loaded in a new context, which does not see the changed variables.We use this pattern to override process variables for a specific task when we want the payload of one task to be different from another task's payload.