UML diagrams question

Pages: 12
Hey,
I'm new to uml diagrams. can any one help me?

A church market has different branches. Cashiers of each branch should be able to input all sales in their Point of Sales (POS) system. All transactions will be recorded in a local database. All transactions already recorded would be verified and validated first by staffs and then by the branch manager for each branch. After validation, information will be summarised before sent to the main office. The marketing manager may create planning and decision for the next month.
a. Draw an Activity Diagram of Transaction Reporting System.
b. Draw a Sequence diagram of all possible classes in the system.
c. Draw a possible State Diagram of a transaction.

Thanks
jesusGod0001@yahoo.com
Firstly, I wouldn't recommend you post your email address like that. Web crawlers designed to find email addresses might pick it up and spam you.

I learnt this stuff from the book 'Applying UML and Patterns' by Larman, C. Very good book in my opinion. The following is based on the content in that book...

I think a domain model would be a good place to start. Such a model shows a conceptual model of the entities and relationships in the domain. There are various ways to find such 'entities'. One of the popular method is a linguistic approach, simply where nouns are underlined! Using this, we can identify concepts like 'Cashier', 'Branch', 'Sale', 'Sales Persistence (database)'. Once you have these, you can identify relationships between them, like 'Sales at a branch are processed by a branch cashier' etc.

Use cases then describe an actor's interaction with the system to reach a useful outcome. In your case, actors might be cashiers, staff, branch manager, marketing manager.

Once you understand a few of the use cases, you can go ahead to draw system sequence diagrams (showing the interfacing methods between actors and the system), operational contracts, interaction diagrams (e.g. sequence diagrams or communication diagrams) and finally a UML class diagram.

That's a very broad description I've given you, mainly because you didn't ask a specific question.

To address the individual questions: a) You should be able to create a basic Activity Diagram showing the sequential steps involved in the transaction reporting process. There's lots on Activity Diagrams on the web.

I have to say I'm a bit concerned about question b). From my understanding, a sequence diagram shows the interactions between classes in a certain scenario (e.g. a use case), and typically wouldn't include ALL the possible classes in the system. Perhaps you're supposed to have a different understanding for your assignment...

c) Think about the states that a transaction can have. I'm no expert, but I imagine that it starts in the 'new' state, then moves to 'recorded', 'verified/validated', 'summarised' etc. A state transition diagram simply shows the paths and triggers between these states.

Hope that helps. It found it useful to write all that too, and I welcome input from others on my comments...
I really hate when people post questions on UML... especially when they have made ZERO effort to understand the concepts or at least make this forum think they have. @jesuslord... get your self a book and read up.
Are you expecting someone to send you the diagrams to your email? Shame on you jesusLord.
You will never get those diagrams to your email
@BinIsmail, just because i ask for help?
sorry jesusLord, i want to help in your church project but i'm very busy now. Good luck
@BinIsmail, just because i ask for help?

No because you ask for help followed by your email address, no1 is going to do the work for you, unless you pay them to. There are 1000000001 references on the internet about UML if you cannot afford a decent book.
"Systems analysis and design in a changing world" is a very good book also.

If your looking for what to use there's 2 really good options I can think of off the top of my head:
http://umlet.com/ <---- cheap and dirty (by cheap I mean free)

http://office.microsoft.com/en-au/visio/default.aspx <----- what can I say it's microsoft, 101 different ideas with a click of a button.


Last edited on
thank you for your responds. I posted the question because i'm new to UML diagrams and i'm teaching myself how to draw it. please, someone should help me in the name of Jesus
UML questions on a C++ forum make Baby Jesus cry!

BUT, since you're here, check out this goldmine of FREE UMLS:
http://www.databaseanswers.org/data_models/index.htm

There are even church examples in there, Praise God.

(Man, I'm probably going to hell but religion just cracks me up!!)
thank you for your responds. I posted the question because i'm new to UML diagrams and i'm teaching myself how to draw it. please, someone should help me in the name of Jesus


LMBO... I'm staying out of it this time.
Be content with what you have, for God has said, "Never
will I leave you; never will I forsake you." So say with
confidence, "The Lord is my helper; I will not be afraid."

- Hebrews 13:5,6

i believe God will help me out, because i have very short time to summit all my projects, and my main problem is those diagrams. Jesus, please!

“Give, and it shall be given to you. For whatever measure you deal out to others, it will be dealt to you in return.”


Now I'm not really religious, but it sounds like you are. You probably know more about the above quote than I do. In the context of this forum, one might interpret it as 'ask specific and intelligent questions and you will get specific and helpful answers'.
jesusLord... just stick to the UML diagrams discussion. What do you have so far and what tool are you using to model?
I'm using system architect, but i'm not familiar with it because i have just started using it last week. I'm teaching myself how to draw uml diagrams with it, but i find it difficult to solve the above question. Please, need help..
Or it may simply be that creating database schemas and writing UML diagrams for them has nothing to do with programming in C++.

Again, THIS place WILL help you: http://www.databaseanswers.org/index.htm

God Luck!
Check your email box to see my suggested diagram.
below is another resources, it may help you in your next project.

http://www.scribd.com/doc/7146706/Complete-Record
Be truly glad. There is wonderful joy ahead!"

- I Peter 1:6

thanks for your email, i do really appreciate. You will be surprise with your life... just watch
thank you once again
@BinIsmail, i showed it to my project co-ordinator he told me that there is some mistake i should go and change it. And he said some of my objects are not correct.
well.. i just send you my suggested solution, i'm not good in uml diagrams because i done it since few years back..
Pages: 12