Questions tagged [activity]
35 questions
12
votes
5 answers
Representing a "wait until" in an activity diagram in UML
How can I represent a "wait until customer representative is available" in the UML activity diagram below? A solution in UML 1 or UML 2 are both acceptable.
Proposal 1
The simple line back to the second condition "looks" wrong.
Proposal 2
I also…

problemofficer - n.f. Monica
- 440
- 1
- 3
- 14
8
votes
3 answers
Do activity diagrams always end in one endpoint?
For example an activity diagram for a simple program:
Get User data.
If User Exists DO something, ELSE do nothing.
End.
I often see diagrams with multiple endpoints but also with just one. Should activity diagrams merge both ways to one final…

KhDonen
- 133
- 1
- 2
- 9
5
votes
1 answer
How do you correctly turn this text into an activity diagram (problem with timer)?
This is only an extract from a very long text, the one I'm not sure about. It's about a photo booth (an automata that makes a picture of you if you insert coin).
The automata has a camera that is recording once a coin is inserted. The customer has 2…

tenepolis
- 285
- 1
- 7
5
votes
1 answer
How "selection behavior" works in UML?
After two hours reading/searching in about examples and usages of selection behavior of object flows, I guess that selects all tokens which satisfy a criteria (like a query) and this can change order of tokens as specification in 15.2.3.4 Object…

hasanghaforian
- 651
- 1
- 6
- 14
4
votes
2 answers
Adding more responsibilities to Activities in a flexible way
I am considering how I can add tasks to Android Activities in a flexible way. I can only use implementation inheritance for one thing in Java and I would like to use it, if I use it at all, for something else.
I think I need to draw the domain first…

pjv
- 93
- 7
3
votes
1 answer
initial and final state in activity diagram
As we know , initial state is the initial state of the system before the activity begins and the final state is the final state of the system when the activity ends. But what exactly is the initial and final state in activity diagram? I mean , for…

John adams
- 493
- 1
- 4
- 12
3
votes
0 answers
How to model an optional input to an activity?
I am constructing a UML 2.0 activity diagram. The activity is to evaluate data from a usability study of a prototype. It can optionally end with just getting the user satisfaction results. But if the company wants to choose which features to…

rumtscho
- 211
- 1
- 8
2
votes
2 answers
how to express alternative flows in activity diagram
I want to express the below events in an activity diagram:
An alternative flow, such as "at step x of basic flow, user clicks cancel instead of ok".
An alternative entry to the use case, such as "instead of click the bold button, use can press…

Martin
- 215
- 1
- 3
- 5
2
votes
2 answers
What is the best way to trigger on object flow with a control flow in an UML activity diagram?
I want to have a control flow decide whether an object can pass through a point in a flow or not. From my understanding of control and object flows, this would not work in the way I have done it, since an object and control flow are being joined…

lokus
- 41
- 4
2
votes
2 answers
What is the difference of swimlane and activity diagram?
Im trying to make an activity diagram , but i see that activity and swimlane diagram is almost the same, the only difference i see that swimlane diagram include many actor in it
i wonder about the activity and swimlane diagram, what is the…

Enrico Hasnawi
- 207
- 1
- 3
- 7
1
vote
2 answers
How to break asynchronous loop in the activity diagram from UML
I have an activity diagram below.
I want to know if that kind of loop is correct.
Is that "Waiting for the actor to stop listening to the music" a correct way to end the whole use case with that kind of ramification?
And how that ramification…

Maciej Sikorski
- 127
- 3
1
vote
1 answer
Select one from multiple options in UML activity diagram
I am very new to UML and UML activity diagrams. my question is suppose in a student course registration system after student successfully login to the system there are 3 options add course, delete course or review courses then how we can implement…

Dinithi
- 133
- 7
1
vote
1 answer
Fork and Join in Activity Diagram
Consider the following Activity Diagram :
First of all the activity a22 is confusing me through this configuration .If we need to list all the possible activity sequences that can take place in this activity diagram. My answer is as follows…

John adams
- 493
- 1
- 4
- 12
1
vote
1 answer
"join node" and "fork node" for a single branch in UML
Section 15.3.3.3 of UML specification says:
Fork Nodes
A ForkNode is a ControlNode that splits a flow into multiple concurrent flows.
Also 15.3.3.4 says:
Join Nodes
A JoinNode is a ControlNode that synchronizes multiple flows.
Also 15.3.4.2…

hasanghaforian
- 651
- 1
- 6
- 14
1
vote
1 answer
Representing handlers on UML diagrams
This question is a follow-up to Representing multiple actions for sequence of objects on activity diagram, but isn't strictly related. The question boils down to:
How to present in UML patterns that behave differently depending on how network of…

Jędrzej Dudkiewicz
- 133
- 7