Questions tagged [activity]
The activity tag has no usage guidance.
35
questions
0
votes
0
answers
367
views
Is splitting Android activities/classes into many Kotlin extension functions a good or bad practise?
I have been working on an Android application for some time, and ever since the beginning I've developed a practice of splitting my class's (mostly activity/fragment) code up into multiple files.
This ...
-1
votes
1
answer
453
views
Drawing UML Activity Diagram - Fetching data decision logic
I have a function to fetch data from remote API and store it in local database. Its logic is:
Is network available, if yes proceed to next step, if no show
error massage.
Is app launched for first ...
0
votes
1
answer
394
views
BPMN recurring activities
How can I model a supporting recurring activity for a process?
A more general example is how to model waiting for customer actions while performing follow-up actions.
We have a process where we send a ...
-1
votes
1
answer
261
views
Activity Diagram Feedback
I need some consultation on the correctness of the activity diagram, that I have created for the following scene:
I have one dictionary structure, that I want to compare to other dictionaries. for the ...
-9
votes
1
answer
139
views
Are the stone-dead PHP mailing lists really how PHP developers and the PHP community communicate? [closed]
I've been looking at this for a long time: https://news-web.php.net/
Almost every single mailing list has the last messages sent to them in the year 2000-2003. That's 17-20 years ago!
It would be an ...
1
vote
2
answers
830
views
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 ...
2
votes
2
answers
298
views
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, ...
1
vote
1
answer
2k
views
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 ...
-1
votes
2
answers
1k
views
SyML/UML Activity diagram: how to model an OR gate
In a SyML/UML activity diagram, how do you implement an OR gate ?
There immediately came to mind to use a merge node. But does a merge node always have to come after a decision node?
Also, I have ...
1
vote
1
answer
560
views
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 ...
2
votes
2
answers
5k
views
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 ...
3
votes
1
answer
979
views
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 ...
5
votes
1
answer
2k
views
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 ...
0
votes
3
answers
220
views
In which case will a token from an activity join node be rejected?
In an UML activity diagram, join nodes synchronise concurrent flows by regulating the flow of tokens. The UML specifications foresees that tokens can be rejected. Section 15.3.3.4 Join Nodes says:
...
1
vote
1
answer
1k
views
"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 ...
5
votes
1
answer
315
views
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 ...
0
votes
1
answer
267
views
offering multiple tokens at the same time in Activity diagram
UML specification says:
If multiple tokens are offered at the same time, then the tokens are offered in the same order as if they had been offered one at a time from the source
I want to know "...
1
vote
1
answer
1k
views
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 ...
1
vote
2
answers
1k
views
Representing multiple actions for sequence of objects on activity diagram
EDIT: This question led to another, namely Representing handlers on UML diagram.
I'm trying to create an Activity Diagram that shows that a collection of objects is handled by a collection of ...
1
vote
1
answer
719
views
Should I replace switch case of functions determined by options in previous activity?
For example, assume my app has 3 steps with 3 pages:
Step 1 : MainActivity: choose color
Step 2 : EditTextActivity: input text
Step 3 : GreenActivity: display color and input text
In ...
13
votes
5
answers
25k
views
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 ...
0
votes
1
answer
827
views
Android Activitiy and Service Sync
I've looked for the solution of my problem but I've failed in finding a suitable answer.
I've been trying to develop an Android application with heavy asyncronous networking capabilities. The problem ...
0
votes
1
answer
779
views
Include exceptions in activity diagrams? [closed]
Should I include exceptions, like a TimeOutException or just general Exceptions, to a activity diagram?
For example: A activity diagram describing a client-server connection. Several exceptions can ...
1
vote
1
answer
346
views
UML : What is an Activity in an Activity diagram?
I am translating a Use Case diagram step into an Activity Diagram. Does every step of my UC diagram describe an Activity ? Is there one and only one Activity in an Activity Diagram ?
0
votes
0
answers
30
views
Polling more recent / active items more frequently
I'm setting up a service that is meant to query, via a rate-limited API, a number of posts in real-time. Now, some of these posts can be several months old, and they should really only be queried, say,...
0
votes
1
answer
672
views
Merging user activities into one stream with a common representation
My social network website currently has
forum threads and posts
gallery pictures
albums on the users' profiles
group discussions
classifieds
I would like to create one "stream" of activity. It would ...
3
votes
0
answers
1k
views
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 ...
0
votes
1
answer
867
views
Is it good approach to open a keyboard at Actvity start where only one EditTextbox is present [closed]
I am working with Forgot password, where I have single EditTextBox and a single submit button.
So whenever I am opening this Forgot password page, my keyboard is opened at the start of this page.
In ...
1
vote
2
answers
5k
views
Android Design - Service vs Thread for Networking
I am writing an Android app, finally (yay me) and for this app I need persistant, but user closeable, network sockets (yes, more than one). I decided to try my hand at writing my own version of an ...
1
vote
0
answers
293
views
UML activity diagram: How to end activity after Event Signal Action?
To my knowledge, event signal actions are not allowed to have output control flow, so how can I model the end of an activity after a event signal action? The same issue arises for accept event actions ...
8
votes
3
answers
16k
views
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 ...
1
vote
2
answers
5k
views
Activity diagram, can merge node have more than 1 output?
There is a simple system, that allows users to do 4 things: ADD, EDIT, DELETE, PRINT data.
I am due to model it (I'm entirely new to UML activity diagrams) and from notation, I dont understand ...
-1
votes
1
answer
1k
views
How to construct UML activity diagram reflecting real programmed source code as docs
Please, tell me the things I must use for modeling an (Enterprise Architect) activity diagram of
object1.method1() calls object2.method2()
I'm able to dragndrop a method of a class from model tree-...
4
votes
2
answers
1k
views
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 ...
2
votes
2
answers
9k
views
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 "...