Book a Demo

Author Topic: Code related to a Process Activity Diagram  (Read 9304 times)

Enrico Tomasini

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Code related to a Process Activity Diagram
« on: December 28, 2003, 10:49:45 am »
Could someone suggest: an example, a book or a link to, showing a code  implementation of an Activity Process diagram.

Thanks, Enrico

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Code related to a Process Activity Diagram
« Reply #1 on: December 28, 2003, 06:46:46 pm »
Enrico,

do you mean a code resulting from the Activity Diagram?

Bruno

Enrico Tomasini

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Code related to a Process Activity Diagram
« Reply #2 on: December 29, 2003, 06:02:13 am »
Hi Bruno,

I try to explain the matter.

After some reading about UML it appears to me that every system behavior is performed by the code included in the object's methods.

A developer could decide to implement the method's code in a suitable way to comply a state diagram
or an activity diagram designed for it.


That's ok ad EA is a wonderful tool to help us to keep a clear view of the whole


Now I'm trying to undestand what an activity diagram means, in terms of code, when it represent actions
performed by methods of different objects ( i.e. to specify a process flow).

Isn't this the role of collaboration diagram?  ( now comunication diagram with UML2)

Who manage to tip the ball in an Activity Diagram transition ?

Kindly, Enrico
« Last Edit: December 29, 2003, 08:02:35 am by es1203 »

Bruno.Cossi

  • EA User
  • **
  • Posts: 803
  • Karma: +0/-0
    • View Profile
Re: Code related to a Process Activity Diagram
« Reply #3 on: December 29, 2003, 10:22:40 am »
Ah, I see what you are getting at now, Enrico.
I agree with you that the border between the Collaboration and Activity diagrams is somewhat fuzzy now, however in general, the Activity diagram shows the internal behaviour of an object, whereas the collaboration diagram shows how the objects communicate one with another and how do they pass messages from one to another.
Thinking of it, an Activity diagram would be kind of like a collaboration diagram with only one object collaboratin with itself... funny thought, in a way :-)

Ciao,
Bruno