Book a Demo

Author Topic: Custom transformations of diagram elements  (Read 2978 times)

mr.sverrir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Custom transformations of diagram elements
« on: September 04, 2008, 03:43:15 am »
Hello everyone,

I was wondering whether it was possible to successfully execute custom transformations (provided I can write one) on elements that are not of a type Class/Interface, for example I want to transform elements that are as exotic as Requirement, Issue, Use Case, etc.

In other words, are transformations meant to work only with Classes or similar elements as the source, or is there maybe more freedom?

Thanks.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom transformations of diagram elements
« Reply #1 on: September 04, 2008, 03:51:45 am »
You should be able to do this.

There are probably some limitations, but these might well apply to class models as well.
No, you can't have it!

mr.sverrir

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Custom transformations of diagram elements
« Reply #2 on: September 06, 2008, 07:26:27 am »
Thank you. I will definitely try that once I get my head around it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom transformations of diagram elements
« Reply #3 on: September 06, 2008, 10:34:17 am »
On second thought I might be wrong here. I seem to remember that transformations might be limited in the type of diagrams (or elements) they act on.
No, you can't have it!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Custom transformations of diagram elements
« Reply #4 on: September 06, 2008, 10:40:41 am »
I looked through it again. I really cannot tell. EA can certainly create objects of just about any kind, but I don't see anything that says (explicitly) that it can take any element as input.

Anyone know for sure?
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Custom transformations of diagram elements
« Reply #5 on: September 08, 2008, 08:27:20 am »
They can take any element type as input.  But even though it may not be a class you need to use the macros like %className%.

Use the %elemType% macro to get the type of the current element.