Persist Certain Process level variable across all User task

Hi Everyone,
I am currently working on a Proof of Concept (POC) to integrate Zeebe with a custom Elastic exporter.

Question: Is there a way to store specific named variables as part of the UserTask itself, either by designing the BPMN or through the exporter code?

My confusion arises because Zeebe calculates the values of variables before processing the UserTask. Even if I define the variables in the input/output mappings for the UserTask, they still do not appear in the UserTask event when passed to the exporter.

The issue is that, while all the information is packed at the UserTask level for Zeebe processing, the exporter breaks it down into multiple events. Stitching this data back together has proven inefficient, so I’m wondering if there is a way to populate the UserTask Created events with specific variables.

For example, the existing taskContextDisplayName is a reserved variable in the task list, but it is not stored alongside the UserTasks. Currently, the resolution relies on an external variable document fetch. Are there any alternative solutions to this?

Thanks for any insights!