Quantcast
Browsing all 80 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Not sure if my UML USE-CASE diagram is correct

I've started learning UML but it confuses me sometimes (for example what i'm allowed or not to put in my USECASE diagram, last time i was wondering if logging in can be used in usecase diagram)....

View Article


Image may be NSFW.
Clik here to view.

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...

View Article


Relating creation and update request use cases to entity in clean...

Let's say I am building a basic REST allowing CRUD operations on some object type A.I am using clean architecture, soThe definition of A itself sits in the Domain layer. This includes any business...

View Article

Image may be NSFW.
Clik here to view.

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, or...

View Article

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 executed...

View Article


How can a Use Case diagram be presented when an actor has two different...

I have to build an Use Case diagram, but one of the actors has two different scenarios, for example the actor has to either choose one laptop or some laptops.How do I represent that in my Use Case...

View Article

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...

View Article

What would you consider the correct way to implement Use Cases/Repositories...

Suppose I have the following UseCase to fetch users as a flowclass FetchUsersFlowUseCase( private val userRepository: UserRepository) { operator fun invoke(): Flow<List<User>> { return...

View Article


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 --...

View Article


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...

View Article

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 of...

View Article

Image may be NSFW.
Clik here to view.

How to mock void parameter in use case

I do have the next Use Caseclass GetLessonsUseCase extends UseCase<List<LessonEntity>, void> { final LessonsRepository _repository; GetLessonsUseCase(this._repository); @override...

View Article

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...

View Article


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 main...

View Article

Clean Architecture and authentication. Correct way?

I'm working on an Android app based on Clean Architecture pattern and I have doubts how to implement user authentication in a clean way. Is the following solution clean in terms of clean architecture?I...

View Article


Shall the behaviour of an included use-case always be executed with the...

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...

View Article

Image may be NSFW.
Clik here to view.

How to represent a complex use case where every step of the main flow can...

Little backgroundI'm new to writing use cases and representing their scenarios.I'm dealing with a complex system. In the first step of analyzing the system, I created a use case diagram where each use...

View Article


how to resolve FATAL EXCEPTION: DefaultDispatcher-worker-4

I have written a new usecase to communicate to api which uses Flow, I am guessing I am not handing the threading properly in the Usecase between Main thread and IO thread,This is the error I get-01-18...

View Article

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...

View Article

Use case or actor responsibility?

I'm having hard time finding a place to implement logic.Suppose there is a repository of bookmarks. The repository can be observed via Flow. Resulting bookmark content can be influenced by events like...

View Article
Browsing all 80 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>