Copy Tagged Values from a source to a target model using Transformations

Transformations do not automatically copy Tagged Values from the source model to the target model as it is up to the transformation to specify what tagged values are needed.

 

In order to copy a Tagged Value named "mytag" from the source model to the target model you can add the following to the Class template (Ctrl+Alt+H):

 

%if classTag:"mytag" != ""%
Tag
{
  name=%qt%mytag%qt%
  value=%qt%%classTag:"mytag"%%qt%
}
%endIf%

 

For more information on transformation templates see:

http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/software...

 

About the Author

Sparx Systems

Sparx Systems

Sparx Systems specializes in high performance and scalable visual modeling tools for the planning, design and construction of software intensive systems. A Contributing Member of the Object Management Group (OMG), Sparx Systems is committed to realizing the potential of model-driven development based on open standards. The company’s flagship product, Enterprise Architect, has received numerous accolades since its commercial release in August, 2000. Enterprise Architect is the design tool of choice for over 300,000 registered users world-wide.