Questions tagged [use-case]
In software and systems engineering, a use case is a list of steps, typically defining interactions between a role and a system. From Wikipedia: http://en.wikipedia.org/wiki/Use_case
242 questions
2
votes
3
answers
251
views
Single or multiple use cases for alternative actions in the same flow?
I’m modeling a use case diagram for an online marketplace system.
In one of my use cases, the seller can perform three different actions:
Accept an offer → closes the negotiation,
Reject an offer → ...
5
votes
4
answers
560
views
How should I model the external entity and actor in my DFDs and UC Diagram for an app used by the QA officer (and possibly other staff) in an agency?
I’m creating a 0- and 1-Level DFD, along with a UC Diagram, for a data cleansing web application for a government agency.
The primary user of the system is the agency’s Quality Assurance (QA) Officer.
...
7
votes
2
answers
1k
views
Creating sequence diagrams for use cases
If I create a sequence diagram for a use case, should the objects in the sequence diagram be based on the methods and classes in the class diagram, or is that not necessarily required?
6
votes
2
answers
164
views
use case relationship generalization
I'm creating a use case diagram. Is it correct to make gaining muscle/maintaining weight/losing weight a generalization? Or do you think I should just delete those use cases? I mean the use case of ...
0
votes
2
answers
170
views
Is my use case diagram about AI expertizer interpretable?
I have this Use-case diagram:
Stop Scroll Here!!!
What is your first impression about the use case? I mean is it interpretable intuitively? After you answer it, I will explain what that use case is ...
1
vote
1
answer
141
views
Does the current Use Case Diagram clearly represent how users interact with the system?
Detailed Idea for the Dermatech System
Main Idea of the System:
Dermatech is an AI-based system that operates through a mobile application, designed to assist users in diagnosing primary skin ...
3
votes
2
answers
124
views
database as distinct operations in the Use Case diagram
I'm working on analyzing an application for skin disease diagnosis using AI. Here's the scenario:
User Interaction: The user logs in to the application, uploads or captures an image of their skin ...
1
vote
1
answer
162
views
converting use case diagram to an use case template
I am new to UML and have a problem. I am trying to model a system where a teacher can develop an assignment paper and use an LLM to generate answers to make a more robust paper. later, the moderator ...
1
vote
1
answer
244
views
The level of granularity of a use case
I am new to UML and have a problem. I am trying to model a system where a teacher can develop an assignment paper and use an LLM to generate answers to make a more robust paper. later, the moderator ...
0
votes
2
answers
325
views
Problem with use case diagram
I am realising a project only I do not understand whether the diagram is correct or not.
I've used a generalization for merging two CRUD operations. Is this correct?
Is the use case login correct if ...
14
votes
3
answers
9k
views
My use case diagram is a mess. What can I do?
I was asked to build a use case diagram for a case study of a charter boat company. I said that the system will implement a shift away from their use of manual forms into an online booking and payment ...
0
votes
1
answer
100
views
Confirmation of the request with the client. Use use case diagram or not?
Let's image that I have a requirement from a user about logging. He wants to log and then display to manager every action made by a user in the system. And for specific actions e.g. opening a case he ...
3
votes
1
answer
143
views
Required sequential actions in use case diagram
I am creating a use case diagram for an elevator control system program, and I am a little confused about using includes for sequential actions.
What I mean is that when the user calls the elevator, ...
1
vote
2
answers
231
views
Entities can move from one Clean Architecture use case to another using the controller?
I'm working on a project with the task of creating a route to checkout ticket purchases for events. In this scenario, I have a controller that receives the request with order data, client information, ...
2
votes
3
answers
943
views
Streams and clean architecture
I am pretty new to async programming and the whole stream stuff, since i have a web programming background with php, where async programming and streams isn't really a big topic most time.
I try to ...
1
vote
1
answer
83
views
Should I combine use cases related to viewing?
When I did a small project in school about writing a document for Online Auction System in OOAD (Object-oriented analysis and design) courses, I had trouble with multiple Auction viewing use cases ...
3
votes
5
answers
254
views
Add new condition or create a separate method?
At first I had the following logic of user creation:
class UserService {
constructor(userRepository, postRepository) {}
createUser({user}) {
this.userRepository.create(user);
}
}
Then I ...
1
vote
3
answers
325
views
Why does this use case diagram consider system behavior a use case
Please help me understand why, in this diagram, "Validate User" is considered a use case.
My understanding is that to qualify as one, a use case must:
Be initiated by an actor;
Represent ...
2
votes
1
answer
210
views
Can a use case use both extend and include?
Can a use case use both extend and include?
For example like the "Take Advanced Knowledge Quest" use case in the picture below.
1
vote
1
answer
595
views
Should I include an actor to represent the database in a use case diagram? [duplicate]
I'm working on the documentation of software management system. That system can be linked with an e-commerce website to get financial data directly. For example when a transaction will be made it will ...
-1
votes
1
answer
253
views
Split or join two use cases that are similar in Clean Architecture
In my working project I have a CustomerRegisterUseCase, that has following steps:
validate email is already in use;
hash password;
save customer in temporary table(tranfered to customer table after ...
2
votes
1
answer
3k
views
Clean Architecture Use Case and db transactions/unit of work
I've started working on a LoB application (as a learning exercise) while trying to express business logic with use cases from Clean Architecture. First use case is customer onboarding where client can ...
1
vote
2
answers
964
views
Is inheritance in use case diagrams between actors limited to one specific diagram
Is inheritance in use case diagrams between actors limited to one specific diagram or is it applies to other diagrams too? e.g. I got 2 actors let's say Actor A, Actor B. I got also two use case ...
2
votes
1
answer
194
views
How should I model the actors in a use case diagram for a platform that allows users to both watch videos and create their own channels, like YouTube?
Should I use separate actors for "Video Watcher" and "Channel Creator," or a single actor called "User" that represents all users of the system?
i have a webapp where ...
0
votes
1
answer
184
views
Use case diagrams
I was asked to write a use case diagram based on a description/scenario
and I got a little confused when designing this use case because I doubted a little whether it's a functional or non-functional ...
0
votes
2
answers
531
views
Use case diagram feedback; is this correct?
I'm trying to learn to create use case diagrams and would appreciate some pointers. The sample problem is to create a use case diagram for a seller in an online magazine selling site, I only have to ...
3
votes
1
answer
4k
views
In Clean Architecture, how do we name UseCases that get more and more specific without the names becoming too long?
All the examples of Clean Architecture that I see have very simple use cases, such as:
OpenAccountUseCase
DepositMoneyUseCase
However, real world applications have much more complex logic.
Let's say ...
-1
votes
1
answer
508
views
Do usecase-class work with domain-model or data-model at cleanarchitecture?
I interessted in the "usecases" and "how they interacts with the "context" at "clean architecture".
If I understand right, there will be two contexts.
First is the ...
2
votes
0
answers
586
views
On which layer of Clean Architecture hierarchy must be the entities with application-specific properties?
From the answer to Must the use cases extend the entities in Clean Architecture? I have known that the use cases must NOT extend the entities. It's fine, but what do I have to do with the properties ...
1
vote
1
answer
2k
views
Must the use cases extend the entities in Clean Architecture?
Currently I don't understand the Use case concept enough good - too much abstract definitions but no particular examples. The section Use Cases of Chapter 20 Business Rules does not including any code ...
2
votes
6
answers
4k
views
TDD: testing an abstract class. Test all concrete classes or create mock sub-class to test the behavior?
Well, I'm developing a personal project using TDD and Clean Architecture, and I chose to build an abstract class to gather all use-cases behavior in one single class. My question is: What you think ...
0
votes
1
answer
459
views
What should I write before the tests in Clean Architecture with TDD?
Well, we all know the main concept of TDD: write a failing test, then implement the testing component to make your test pass.
I've been working on a personal project in Clean Architecture following ...
5
votes
1
answer
2k
views
Use Cases in Clean Architecture, in Requirements Specifications from Software Engineering and Use Case Diagrams in UML
Well, I've been studying software architecture a lot, Clean Architecture in specific and I came across some multi meanings terms and "Use Case" is one of them.
I'd read in some places that ...
0
votes
1
answer
4k
views
Two actors have same use case but can access different extends (Use Case Diagram)
I am trying to create a use case diagram. In the diagram, I have two actors that have access to the same use case (View Properties) but they have different functions related to the use case. Can ...
0
votes
0
answers
665
views
DDD: Where to put business logic with conditionals etc., is it a domain service?
I would think the answer to my question is yes, but I have never really seen it in practice or any OSS project (and links to any OSS sample projects are highly welcome because the typical examples ...
0
votes
2
answers
2k
views
Use case diagram question confusion
For this question we got for a mock test we did and I have put the correct options in bold
Consider the following use case diagram, is it correct to state that:
a. Customer directly interacts with ...
0
votes
1
answer
973
views
How to conform two repositories that work on the same entity but have different methods?
I have to implement 2 use cases, the first one is going to create a Company profile from its document number, so inside the use case, it reaches out to the third party API that contains information ...
-3
votes
1
answer
574
views
Which are the correct statements about the use case diagram below?
I found this practice question online and I am very confused by it
Given the use case diagram below, select the CORRECT statement(s):
a.
A user cannot Rebalance its portfolio before having all the ...
3
votes
1
answer
3k
views
In a sequence diagram, where do message parameters come from?
I'm drawing some sequence diagrams to give a graphical depiction of the use cases written during the requirements elicitation phase for my project. This is a simple one:
Vote Post Use Case
...
2
votes
4
answers
937
views
Can the presenter talk to to the controller?
in the clear architecture, what uncle bob suggested.
I have a lot of questions about how to correctly distribute the responsibility.
it seems that there is no relationship between controller and ...
0
votes
0
answers
683
views
Drawing a sequence diagram for a "View posts in a section" use case
As title says, I'm currently working on an alaysis model for a little website similar to Reddit for academic purposes.
I have one use cases written like this (They're not in English so they may not ...
5
votes
3
answers
3k
views
Non Functional Requirements and Use Case Diagrams
My software provides two functional requirements, and I represent them as Do A and Do B in the figure 1 below. At the same time, my software has a non-functional requirement to provide the interface ...
0
votes
1
answer
765
views
Bank actors in Use case diagrams
In a use-case diagram, use cases (bubbles) provide a functionality to an actor. For example, ecommerce site, actor "shopper" could use bubble "browse catalog" or "make payment&...
1
vote
2
answers
849
views
Use case scenario based on a use case using "uses" or "extends"
In a use case diagram, use case A "uses" use case B. I need to write the scenario based on steps of use case A. Since A "uses" B, I just wanted to confirm that I need to include ...
1
vote
5
answers
1k
views
Actors participating in use case diagram
Suppose a customer needs to approach a staff member to register her. To model this, I have drawn the image below. However, I am not sure if what I have drawn, actually means both of them can register ...
-3
votes
1
answer
295
views
Whats the purpose of use-case and data-sources?
I have a question about where should I get the info required for making an api call.
Let's say I have this :
Presenter --> Use Case --> DataSource --> Api
Ok now to do my api call, I need a ...
-1
votes
1
answer
186
views
How use case scenario should look like, when use case have extensions points or include something
I have this simple UC diagram.
Firstly, when the customer enters a repair order, the system checks whether the order can be processed (if the repair company can repair this model of device) - UC &...
3
votes
3
answers
2k
views
Do fully dressed use cases contain postconditions?
I am trying to solidify my understanding of the definition of a fully dressed use case.
I was asked a question in an interview which was as follows:
Operations contracts are generally written for:
...
1
vote
3
answers
1k
views
Should the Use Case be responsible for transforming its primitive parameters into typed data for the Entity to use?
I'm building a Use Case for creating blog posts, this Use Case has its own "DTO", which is basically a parameter object with only primitive data, as follows:
Use Case's DTO (Parameter Object)...
2
votes
2
answers
2k
views
Should an Use Case method receive a "pre-filled" entity or a DTO as a parameter?
I'm building a use-case for creating blog posts, at first I thought of using an entity as a use-case parameter, and this entity would be created by the layer that calls Use Case, in my case a ...