Global variable in generation context
Hi,
I'm actually working on a XML generator that generate state charts.
I would like to know if its possible to have a global variable, shared with all templates, in order to store the state chart structure currently generated ?
Thanks,
Robin
Please sign in to leave a comment.
Hi,
I believe that the session user object of generator context is what you are looking for:
"genContext.session object [ "myKey" ]"
You can get its description at https://confluence.jetbrains.com/display/MPSD33/Generator#Generator-TransferringUserData
Vaclav