Sparx Systems Forum

Discussion => Uml Process => Topic started by: Computechnic on January 07, 2014, 09:44:45 pm

Title: global variable in code templates
Post by: Computechnic on January 07, 2014, 09:44:45 pm
hello

We modified the template to create code in our defined Codestyle. Now I'm trying to create a "global" variable which should be usable in a global scope over all templates (at least two). This is used to write a marker for each scope in the source file. I would set a "FirstPublic" variable to true before iterating over all operations. In the operation template I would like to test the scope and this variable. Is it the first public operation the output will be done and the variable will be set to false.
Is there a way to do something like this?

Thanks for your help.

Regards
Title: Re: global variable in code templates
Post by: Simon M on January 13, 2014, 09:23:50 am
There is no way to have variables across multiple templates.