Book a Demo

Author Topic: Adding Diagrams to class operation  (Read 3951 times)

kam

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Adding Diagrams to class operation
« on: November 05, 2010, 08:27:27 pm »
Hi,
I'm a software engineer and use EA for documentation of some complex classes in a realtime environment. To give better understanding of class operations, I'd like to add an activity diagram to that.
Any hint why it is not possible to add a new diagram but to paste an existing diagram to the class operation ?  :-[

Thanks a lot
karl
« Last Edit: November 05, 2010, 08:28:25 pm by kam2630 »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding Diagrams to class operation
« Reply #1 on: November 05, 2010, 08:34:25 pm »
Karl,

I don't understand your question exactly.
Where do you want to add a diagram?
In EA you can only add diagrams nested in Elements or diagrams, not nested in an operation or an attribute.

Geert

kam

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Adding Diagrams to class operation
« Reply #2 on: November 05, 2010, 08:50:49 pm »
Gert,

I created a class "Class1" into a package and added an operation "op1" into this class.

If I do a right click onto this operation I'll get a popup menu,
allowing to paste a previous copied diagramm; but it seems not to be allowed to start a new one here.

If it is not allowed to do so, how is the "correct" way to combine a class operation with an activity diagram ?

thks,
karl

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding Diagrams to class operation
« Reply #3 on: November 05, 2010, 09:06:12 pm »
Karl,

If you reload the model you will notice that the diagram isn't there anymore. Apparently this is a bug in EA to allow the "paste diagram" command on operations.

There are many ways to link behavior to an operation. What you could do is
- Create an Activity with a nested Activity diagram
- Go to the Behavior tab of the operations properties
- Click on the [...] button and select the previously created Activity

Geert

kam

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Adding Diagrams to class operation
« Reply #4 on: November 05, 2010, 10:20:10 pm »
Geert,

I'm not really satisified to do it like that, but at least it is a way.

Thks,
Karl

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding Diagrams to class operation
« Reply #5 on: November 05, 2010, 10:53:45 pm »
Karl,

If you're not happy about that you'll need to talk to OMG, because that is the way it is designed to work in UML.

Geert