Book a Demo

Author Topic: Instancing UML Pattern  (Read 3301 times)

Diego Martinez

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Instancing UML Pattern
« on: January 05, 2011, 07:44:15 am »
Hi to everybody,

I am using UML Patterns functionality to automate the creation of certain component diagrams. The "Save as UML Pattern..." feature asks me, for each object / node in the diagram, the instance action (Create, Merge, Instance). It also lets me specify a default value (Default).
 
What I'm looking for is that when I later instance the pattern, certain objects/nodes do not ask me for the instance action (Create or Merge or Instance). I would like that a merge is automatically made using the default value I indicated at the time of the creation of the pattern.
 
I cannot make it work.
 
According to the EA documentation, the merge or instance action, in combination with the default value, should be used to accomplish what I'm looking for, but I don't have luck: when instancing the pattern, the EA always asked information for all the objects/nodes.

Any suggestion?


Thanks in advance for any help,
Diego
 

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Instancing UML Pattern
« Reply #1 on: January 05, 2011, 07:20:26 pm »
Diego,

Looks like the api is not doing what it is supposed to do according to the documentation -> bug. You can report it using the link on the bottom of the page.
As a workaround you could try to use Repository.SuppressEADialogs
(no guarantees).

Geert

Diego Martinez

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Instancing UML Pattern
« Reply #2 on: January 06, 2011, 12:28:07 am »
Sorry Geert, I forgot to mention that I'm NOT USING the API!

I'm working direclty with the EA visual interface.

I'm using 8.0.856 version.


Thanks again,
Diego

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Instancing UML Pattern
« Reply #3 on: January 06, 2011, 12:34:05 am »
Diego, in that case you better start a topic in the general board forum.
Here we are supposed to discuss API and Addin stuff.

Geert

Diego Martinez

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Instancing UML Pattern
« Reply #4 on: January 06, 2011, 12:45:18 am »
OK.

I misunderstood this discussion's description.

New topic: http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1294234895.


Thanks,
Diego