Hello all. I’m trying to pass some additional info to my user tasks, but I can’t figure out how. My use-case is something like this: I have a user task that can be started by several different ways - through message intermediate catch events, timers, etc. I’ve attached a sample BPMN that demonstrates this. When receiving the events/messages - they usually contain some additional information - in particular “userId” of the user that triggered the message. I can easily pass that information as context variable to my BPMN. I also have an EventListener defined in my code that listens for create/complete/delete task events - so whenever my “Do something” user task gets activated - I can perform some additional work on the backend.
Is there any way to pass the “userId” information to my user task (“Do something”) so that in the EventListener I can retrieve it and do some additional processing (e.g. write some audit log, etc.)? The caveat being that when the user task is started by the first or second event - the userId should be retrieved from that respective event, but when the user task is started from another flow (e.g. - the timer) - then the userId should be null/not set.
Can I pass an input (or extension property) variable to my user task through the flow arrows coming out of the events/timer?