Reply To: Messages from classes

Hello! Thank you for the update.

I've played around with messages in the sequence diagram, and i find it puzzling.

If a have two classes that are related (for example a business layer class that uses the data access layer class to save some data)

ClassDAL

-------

-------

Save()

Read()

ClassBLL

------

-DAL:ClassDAL

------

Save_DAL()

In the sequence diagram, when i create both of them to represent the sequence, the message i choose then BLL calls DAL, should be the ones from DAL (since i am "calling them"), and not the ones from BLL

This is how it works right now:

|ClassBLL| |ClassDAL|

| |

| Save_DAL() |

|||--------------------->|||

| |

x x

This is how (as far as i know) should be:

|ClassBLL| |ClassDAL|

| |

| Save() |

|||--------------------->|||

| |

x x

A workaround is this (with current implementation):

|ClassBLL| |ClassDAL|

| |

| Save_DAL() |

|||--------------------->|||

| |||--- | ||| |Save()

| |||<--/

| |||

| |

x x

Juan José 3 October 2012 7:51:06

New Comment

Comment
You can use these formatting tags: [b]bold[/b] [i]italic[/i] [u]underline[/u] [url]www.example.com[/url] [code]some code[/code] [quote]quoted text[/quote] [list]one list item per line[/list]