Author Topic: Activity Diagrams for Class Operations  (Read 5782 times)

kelly_sumrall

  • EA User
  • **
  • Posts: 73
  • Karma: +0/-0
    • View Profile
Activity Diagrams for Class Operations
« on: May 16, 2003, 12:44:10 pm »
I would like to see the ability for class operations to contain activity diagrams.  I know a class operation has a behaviour section (may be good for action language in future), but this doesn't work for visually documenting complex operations.  A diagram contained in the tree node of the class operation would aid in the organization of the project.
Kelly Sumrall

Even though curiosity killed the cat, it still had eight lives left.

mldavis99

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #1 on: July 31, 2003, 09:13:46 am »
 :) This is a very good one and I would hope could open the door to also adding reverse engineering of code into activity diagrams.  There are currently a few stand alone tools which do this ( Visustin Flow Chart Generator  http://www.aivosto.com/visustin.html  and FateSoft SourceCode2FlowChart http://www.fatesoft.com/s2f/index.htm).  This would very much close the loop on EA making it a very complete round trip engineering tool! It's already the best on the street IMHO.

crj18

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #2 on: April 27, 2005, 08:58:34 pm »
I agree that this is a good idea.  I would also like to have sequence diagrams in a class operation....this would allow me to do high level sequence diagrams that show the major method calls, but by looking in one of these operations one could discover the lower level methods that are being used.

Anyway, the suggestion was made 2 years ago....has anything happened?

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #3 on: April 29, 2005, 11:20:19 am »
Ditto... I would add State Machine Diagrams to the list, such that class operations could be described with activity diagrams, sequence diagrams, or statecharts.
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


crj18

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #4 on: May 04, 2005, 03:31:45 pm »
Actually there is kind of a way to do it: If you select an operation in the project browser and then create a new diagram, this diagram will be created inside the operation.  But this relationship only exists in the project broswer.  And as soon as you drag the diagram outside the operation then you can't drag it back in.  And you can't move existing diagrams into an operation.  
Given this lack of support, I suspect that the ability to create a diagram inside an operation is just a bug, and it is probably best not to use it until it is properly supported.

thomaskilian

  • Guest
Re: Activity Diagrams for Class Operations
« Reply #5 on: May 05, 2005, 06:52:12 am »
PAOOOOOLO ;D

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8083
  • Karma: +118/-20
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #6 on: May 05, 2005, 03:32:49 pm »
Please don't create diagrams under your methods using this method.  It is a bug and one that will be fixed in the next version of EA.  There is no support for operations containing diagrams.  If you attempt to add a class to that diagram EA gives an error, when you reload the model the diagram won't be present.

If you really want a diagram that is linked to an operation I would suggest storing the diagram guid in an operation tagged value.  You could even get an addin to open the corresponding diagram to a currently selected operation.

Simon

mikewhit

  • EA User
  • **
  • Posts: 608
  • Karma: +0/-0
  • Accessing ....
    • View Profile
Re: Activity Diagrams for Class Operations
« Reply #7 on: May 06, 2005, 02:55:40 am »
Quote
I would like to see the ability for class operations to contain activity diagrams
It seems that UML mainly considers activities to be relevant for Analysis/high-level rather than Design/implementation ...?
Quote
Activity diagrams are used to model the behaviours of a system, and the way in which these behaviours are related in an overall flow of the system