How to use the variables/arguments of Main workflow in Global Handler?

I searched the forum but didn’t find the answer. The most useful was this: Can we pass extra arguments to Global Exception Handler? but didn’t work. How can I consume the variables or arguments defined in Main workflow in Global Handler workflow?