845 questions
4
votes
2
answers
145
views
Generalization, include or extend
In my book OCUP 2 Certification Guide, there is this following example about a use case generalization relationship:
Am I wrong that I do not see this as a generalization-relationship? A pay by cash ...
2
votes
1
answer
29
views
Do two include relationships attached to a singular use case mean that both connected use cases are needed, or that only one of the two is?
I have an instance where I want to represent a "sell stock" use case. In order to complete this, the user must either access it through "search stock", or through "view stock ...
1
vote
1
answer
32
views
Verb Above Association in USE CASE Diagram
I've started drawing use case diagrams and I have a quick question.
Can we place a verb or any action above the association (line) connecting the actor to the use case (or feature in an oval)?
For ...
-2
votes
1
answer
137
views
How to make a class diagram out of a use case diagram?
I plan to do a system aiming at journalists submitting news stories to editors in view of publishing. This is my use-case diagram:
I struggle somewhat to define the classes based on this diagram.
...
2
votes
1
answer
471
views
Should Login be an included use case in Logout?
I'm researching on Use Case Diagram and have some question to discuss with you. Specifically, I'm wondering about the include relationship in Use Case Diagram. When I read the document of UML ...
0
votes
1
answer
113
views
Orchestrated vs Core use-cases in clean architecture
I have an endpoint that should create a book, and if it is the clients first created book it should send an email like "Congratulations to your first book". Following Clean Architecture I ...
1
vote
1
answer
96
views
by lazy {} causing a cast exception in production / hashmap loosing values after assigning
we have a code that looks somewhat like this small example:
// this is a class that is injected into a view model, it is injected once, as a parameter
// it is used in multiple functions in the view ...
1
vote
1
answer
63
views
UML Actor, UseCase and BehavioredClassifiers
Both UML Actor and UseCase specialize BehavioredClassifier which implies that they can own Behaviors. It is clear to me that UseCase needs to have Behaviors in order to link itself to StateMachine or ...
2
votes
1
answer
70
views
How to represent relationship between system-level use case diagram and organization-level diagram
In my application, I have actors guest, user and admin, user can use basic features and admin can do things like manage users.
Beside, each user can create an organization, and inside organization ...
0
votes
1
answer
39
views
How should I separate UseCases based on the requirements?
So I'm trying to understand clean architecture principles.
One of the most confusing for me is the UseCase layer. I have read a lot of explanation about what is that, but I still can not decide how ...
1
vote
1
answer
131
views
Related entity creation use case in clean architecture
I'm working on a project using Clean Architecture and an ORM. I have two entities: Entity A and Entity B. Entity A has a relationship with Entity B (e.g., Entity A contains an instance of Entity B).
...
2
votes
1
answer
99
views
UML use case initiated by an external event
I'm developing a use-case diagram for a system that uses several external APIs.
The system should identify when a customer made an EFT(Electronic Fund Transfer) payment to a merchant's bank account ...
1
vote
1
answer
318
views
Handling Multiple Actors in a Use Case in Clean Architecture and DDD
I am doing an API for a blog site using Clean Architecture and DDD. I find myself doing a use case to get all comments for a requested article. The thing is that anonymous users can see the comments ...
0
votes
0
answers
17
views
Join and Cancel - use Include or Extend? [duplicate]
Image here
I have a Use Case Diagram for our Event Management Platform and our group is having a fight. I wonder in these two which is correct:
Cancel EXTENDS Join (in my view, we can choose to ...
2
votes
1
answer
131
views
How to ensure clear and concise Use Case diagram?
Designing a use case diagram, we face a challenge with three actors: Visitor, Client, and Administrator. Each has unique roles, but we must accurately capture their interactions and relationships. ...
1
vote
1
answer
112
views
How to Represent Constraints for Role-Based Access Control in a Task Management Use Case Diagram?
I'm working on designing a use case diagram for a task management application, and I'm seeking guidance on representing role-based access control (RBAC) effectively.
I've created a preliminary use ...
0
votes
1
answer
153
views
How Activity diagram should be? [closed]
i am making an activity diagram about an online train reservation system i want just to ask if what i did is correct or could it be better and how in general should activity diagram be ?
3
votes
1
answer
599
views
System or external system as an actor in a use case?
Let's image a new simple CRM, where...
some external system A uploads new data, CRM saves them
CRM validates the data and creates eg. new cases from them
user displays the cases
These requirements ...
1
vote
1
answer
410
views
Use case extends or include [duplicate]
I have 3 actors: User A, User B and Admin and the use case view photo that is linked with each actors. Now, I want to add a use case add to favourites, and this use case can be activated only by User ...
2
votes
1
answer
251
views
Use cases vs use case scenarios
I need to specify use cases for deleting 2 type of objects x and y, where y is a list of object x.
I want to avoid the excessive fragmentation of use cases, because the flow of event between the 2 use ...
2
votes
1
answer
1k
views
Is there a difference between authentication as a use case and an actor that has that privilege?
The first UML diagram features a basic user interacting with an E-Commerce site, where authentication is explicitly included for actions like placing orders, adding to the cart, and checking out.
In ...
1
vote
1
answer
395
views
Financial management use case diagram for dietary advisor application
This is use case diagram of financial management I have done but I am not sure if it's correct or completed:
I tried to add it as CRUD, but is this correct? And do I have to add more cases connected ...
0
votes
1
answer
239
views
I'm a little bit unsure about my use case diagram
My teacher just gave me a task to create a use case diagram based on her given use cases and I have 2 actors which is Admin and Inventory officer and they are most likely the same to each other, but I'...
2
votes
1
answer
415
views
How can i draw a use case diagram when there is 6 use cases and each has a crud operations?
I was given a task by my teacher to create a use case diagram based on her given use cases below.
Administrator(Actor)
Add User Account
Update User Account
Deactivate User Account ...
0
votes
1
answer
328
views
Are Bloc events the same as Clean Architecture use-cases?
I have this sample code for use cases:
final class AuthUseCases {
final DataProxy dataProxy;
const AuthUseCases(this.dataProxy);
Future<AuthSession> login(TCredential credential) async {
...
1
vote
1
answer
2k
views
Domain layer with Use Cases in android app
I am implementing MVVM android app with domain layer. It goes standard way:
Activity -> ViewModel -> UseCase(with injected repository)
I have one architectural question that I would like to ask ...
1
vote
1
answer
102
views
Is there any specific number of output arrows from one activity in an activity diagram?
I am designing the activity model for a website, and I have a question about whether I have an activity that represents displaying a page on the website. This page contains several buttons, and each ...
3
votes
2
answers
1k
views
How to setup HILT DI in layer base multi-module android application
I am creating an Android Application based on Clean Archtecture with App Modularization.
I have modularized the app by 4 layers (:presentation, :domain:, :data, commons).
The required hierarchy is as ...
0
votes
1
answer
458
views
Should we want to pass Usecase interface as param
In clean architecture, the main core is usecase layer which contains business logics. Now in Android we will use case and pass it to viewmodel as param in constructor. For example
class AddNoteUseCase(...
1
vote
1
answer
169
views
Shall the behaviour of an included use-case always be executed with the behavior of the including case?
Consider a use-case UC1 that includes UC2 and UC3. The UML 2.5.1 specifications define «include» between two use-cases:
Include is a DirectedRelationship between two UseCases, indicating that the ...
0
votes
0
answers
237
views
Base UseCase with coroutines kotlin
I want to have a BaseUseCase class by following:
Must allow to indicate the parameters.
Must run the work itself in a background thread (that would be the doWork method).
Must return the value in the ...
0
votes
1
answer
42
views
Use Case for action "shooting" [duplicate]
I am required to create a use diagram for a requirement in a game where a player shoots another player. Now, I am getting very confused with what the use cases in the diagram should be. Should these ...
1
vote
1
answer
340
views
Use-case diagram: When to decompose use-case and when not to?
For an example, say, I want to draw a use-case diagram for an artificial vending machine like so:
The vending machine have 3 options: carbonated drinks, tea, and pure water.
The user can choose only ...
1
vote
1
answer
2k
views
Use cases vs Domain vs Repositories: Where should the business logic reside?
Upon using Clean Architecture for multiple Android projects, I always stumbling with a temptation on where is the best location to put the business logic. Based on my understanding Domain Model holds ...
0
votes
0
answers
51
views
Use case splitting
Which is best way to split Use Case?
I have the following architecture (Clean Architecture):
- Project.Api
- - Project.Api.Controllers.TodoController
- Project.Application
-- Project.Application....
0
votes
1
answer
274
views
What would you consider the correct way to implement Use Cases/Repositories that return a Flow (Single Source of Truth + remote fetching)
Suppose I have the following UseCase to fetch users as a flow
class FetchUsersFlowUseCase(
private val userRepository: UserRepository
) {
operator fun invoke(): Flow<List<User>> {
...
0
votes
1
answer
45
views
Specific dbcontext per use case or an all in one context?
I searched for some time for a suitable solution for my question, but did not find a compelling answer.
So don't abandon this question if it is in the wrong place or answered elsewhere. Please state a ...
3
votes
2
answers
580
views
extends in Use Cases diagram
in the book UML @ Classroom An Introduction to Object-Oriented Modeling is written "Use cases—even included or extending use cases—can always be executed independently. If they can only be ...
1
vote
4
answers
975
views
Using kotlin coroutines in clean architecture
I am a beginner android developer. I'm just starting to learn clean architecture. Is it practical to have kotlin coroutines dependency in domain layer? As I know domain don't need have dependencies.
I ...
0
votes
1
answer
5k
views
UML : all use cases require login [duplicate]
I am working on a language learning platform and i made the following use case diagram :
My question is : if all my use-cases require the user to be logged in, is the way i used considered correct, ...
-2
votes
1
answer
785
views
Relating creation and update request use cases to entity in clean architecture REST
Let's say I am building a basic REST allowing CRUD operations on some object type A.
I am using clean architecture, so
The definition of A itself sits in the Domain layer. This includes any business ...
2
votes
1
answer
248
views
Use case Actor generalization
Is my use case diagram correct ?
I need help to know if my use case diagram is correct or not, and if the actor admin inherits from manager, and manager inherits from technician, does that mean the ...
3
votes
1
answer
507
views
Is there an equivalent to use case inclusion and extension in Archimate model?
I use to use UML use cases and I have to model a system using Archimate.
I need to model the features of the system, and I guess that I can do that using the business layer of Archimate.
In this ...
1
vote
1
answer
482
views
Identifying Actors in Use Case Diagram for a mobile app
I have a system consisting of the following components:
A mobile app that is controllable by users. Users can log in, create accounts, and then connect to a mirror and after that they can modify ...
1
vote
2
answers
1k
views
Is it good approach to have an interface for all usecases?
I've created an interface for my use cases that returns a Future, Is it good approach to have an interface for all use cases?
What if I need a Usecase to return Streams instead of a single return (...
1
vote
1
answer
1k
views
Can a usecase have repositories from different domains as dependencies, following the clean architecture principles?
Assume I have two models: Student and Course, so we have a simple many-to-many relationship here, i.e., each student can take many courses and each course has many students.
I also have a usecase for ...
-1
votes
1
answer
49
views
Error with String to listOfDoubles in Kotlin
I want to parse ClientEntity.weight in String to ClientDetails.weight which is List of Doubles and use it in my Screen.
My mapper:
fun ClientEntity.toClientDetails() : ClientDetails{
return ...
2
votes
2
answers
109
views
Why Did We Remove Single <<include>> in Given Diagram
While I am following an object oriented course, I am faced with a statement that is kinda strange.
I couldn't understand why we would remove UC4 from the given image.
And if it is wrong, then similar ...
2
votes
2
answers
108
views
use case diagram one of cases one of the cases must be completed in order for the other to be completed
I'm a little stuck on one question.In order for the ad to be "Premium", one of the three options must be selected. If none is selected, then the ad will be common. Can I somehow clarify this ...
0
votes
0
answers
28
views
use case diagram the difference between extend and generalization [duplicate]
I'm trying to figure out which connection I should use better because I don't quite understand the difference between these two connections.The connection of generalization is very clear to me on the ...