Book a Demo

Author Topic: Preserving tagged values through transformation  (Read 2130 times)

ebenfield

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Preserving tagged values through transformation
« on: May 21, 2008, 12:21:37 pm »
Hi,

I have a question about the tagged values in EA. I can get the attribute_name tagged value to tie getters and setters to variables when I set them in a PSM and then generate code. But, if you want to set them in the PIM and have them preserved through eg the transformation to java, how do you do that? Am I right in that the moment to learn the EA developer's kit is approaching?

Thanks for any help,
Ewan

thomas.kilian

  • Guest
Re: Preserving tagged values through transformatio
« Reply #1 on: May 21, 2008, 04:58:29 pm »
AFAIR you have to remember which TVs exist and copy them. There's no way to be informed about the list of defined TVs in transformation. Doesn't bother me as I do not use the macros but automation.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Preserving tagged values through transformatio
« Reply #2 on: May 22, 2008, 08:33:44 am »
I would say it's not so much a case of remembering which ones exist, but which ones apply to the target domain.

The code to copy the attribute_name tag would look something like this.

Code: [Select]
%if opTag:"attribute_name" != ""%
Tag
{
  name="attribute_name"
  value=%qt%%opTag:"attribute_name"%%qt%
}
%endIf%

And no, there is no separate development kit coming.  For a time the documentation for the extending EA was a separate help file.  But this has since been merged into the main help file.  (See http://www.sparxsystems.com.au/EAUserGuide/index.html?introduction_2.htm)
« Last Edit: May 22, 2008, 08:35:39 am by simonm »