Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any "switch case" in UML use-case specification?

Is there any "switch case" in use-case specification?

In the requirements:

  • When user select "contract" in combobox, a "contract" tab appears, then user will interact with the "contract" tab.
  • When user select "Independently funded", a "Funding" tab appears, then user will interact with the "funding" tab.

How can I specify this use-case in my use-case specification?

Those two "case" will be in basic flow, won't they? Then how can I specify the "switch-case"?

Edit: (Because many mistakes what I'm doing, I will make it clear)

I'm not in progress of drawing use-case or drawing activity diagram, I'm in the between. I'm writing use-case specification (which is used to describe a use-case, and will be used later to draw activity diagram).

For more detail: https://www.google.com.vn/search?q=use-case+specification&biw=1280&bih=683&source=lnms&tbm=isch&sa=X&ved=0CAYQ_AUoAWoVChMIn6ujsMDRxwIVC5COCh3aNQGY#

like image 246
Susuri Yuyuki Avatar asked Aug 30 '15 13:08

Susuri Yuyuki


People also ask

What is a UML Use Case diagram?

In this installment we detail the use case specifications that define the use cases presented on the UML Use Case Diagram and which are realized in the form of Sequence Diagrams. A UML Use Case is an atomic system function with a well-defined and standardized specification, which is performed by or o behalf of a system user or ‘actor’.

What is the use case specification in a UC diagram?

The UC diagram itself shows which features the system provides and how (by whom) they are executed. However, there is no additional information about individual use cases except their names. This problem solves the Use Case Specification. It's an additional document that is attached to the use case diagram.

Is use case functionality initiated by the system or the actor?

UML specifications until UML 2.5 required that use case functionality is initiated by an actor . In UML 2.5 this was removed, meaning that there could be some situations when system functionality is started by system itself while still providing useful result to an actor.

How are functional requirements represented in a use case diagram?

The functional requirements from the perspective of all internal and external users is captured and represented. The first component of the Use Case diagram is the system scope called the system boundary or the subject. All the tasks covered under the system’s subject are the use cases.


3 Answers

If you are describing the use case in the notes then write something like

Step m: User selects ?? from combobox. If selection is "contract" resume at Step n. If selection is "Funding" resume at Step o. ... ...

Step n: Resume at Step p.

Step o: Resume at Step p.

Step p: ...

where m, n, o and p are subsequent step numbers in your scenario.

If you are using Activities with Actions you can use a Decision node from where you have multiple outgoing transitions. Each transition then has a guard describing the switch (kind of a multi-if).

enter image description here

like image 126
qwerty_so Avatar answered Oct 18 '22 22:10

qwerty_so


I think this one fulfill the purpose of the cases and follows the UML decision object rules.

enter image description here

like image 41
Jonathan Ramos Avatar answered Oct 19 '22 00:10

Jonathan Ramos


PlantUML suggests elseif-chains which gives also a nice graph.

example

like image 6
Fookiee Avatar answered Oct 18 '22 22:10

Fookiee