Questions tagged [modeling]

Creating and manipulating abstract representations of a problem or of software elements for the purpose of facilitating the understanding, reasoning, and solving of the problem.

Filter by
Sorted by
Tagged with
0 votes
1 answer
65 views

Deriving entities in different domains from one DB table

Let's say I have a table for storing users. In this table, I have data like id, name, address, bank account and birthdate. Also, I have two domains in my codebase; in one of them, I need a user entity ...
Bernardo Benini Fantin's user avatar
0 votes
1 answer
97 views

Rest API Layered Architecture Java / Spring / JPA

Currently, all REST applications I work with have a three-layered architecture: Persistence -> Contains "entity" classes with JPA annotations / Spring Data JPA repositories Core -> ...
Lawrence Beutlich's user avatar
1 vote
5 answers
267 views

Data Modeling: Are technical concepts within a tool that implement a business entity entities as well?

I believe this forum is the correct one for my question, based on the community guidelines but let me know if not. It seemed like the best fit. I am performing a data modeling exercise to formulate a ...
Steven's user avatar
  • 229
2 votes
3 answers
181 views

Is it necessary or "class obsession" (opposite to primitive obsession) to create classes for non-business fields?

I know there are some posts talk about primitive obsession : When is primitive obsession not a code smell?, Is "avoid the yo-yo problem" a valid reason to allow the "primitive obsession&...
wcminipgasker2023's user avatar
0 votes
0 answers
20 views

An IoT client and MVC-based server. Data model with different fields per type?

The problem Let's assume such scenario: List of IoT devices (one model?) Each list item has (among other fields) a type field Depending on the value in the type field, device may report different ...
trejder's user avatar
  • 2,386
3 votes
2 answers
446 views

Does UML have a grammar that correlates to its diagrams?

UML is generally taught as a standardized way of diagramming software, however, I've heard recently that there's an actual grammar behind it. I've searched the UML specification and haven't found ...
Visual Studio's user avatar
0 votes
0 answers
17 views

Implementing custom per-instance note/status in recurring calendar events

I am implementing a simple calendar with recurring events (imagine simple clone of Google Calendar). I've found great hints how to effectively model recurring events here and here (kudos to Brian ...
Maciej Pszczolinski's user avatar
-1 votes
1 answer
166 views

Is KAOS goal modeling used in the industry?

KAOS is a goal-modeling strategy that is widely taught in the academia. I have seen that almost no known diagramming software supports it except objectiver, which was developed by the same group that ...
Bharel's user avatar
  • 137
0 votes
1 answer
78 views

Design a model for a user

There has been a change in the project I am working on. Until today, there was only one type of user in the system. From the moment you logged in, you had all the information about the user. The new ...
Maor's user avatar
  • 111
1 vote
1 answer
89 views

Modeling properties of related entities

I have the following entity relationship. A {state: ON | OFF} => B {state: ON | OFF} => C {state: ON | OFF} So, in this case, B is a child of A, and C is a child of B. Moreover, they all share ...
salparadise's user avatar
0 votes
1 answer
99 views

UML design for data analytics of aggregated Survey Data

First and foremost, let me say that I do not have a Software Engineering background . I need help from the community as I have been assigned to create a UML (Unified Modeling Language) design from ...
user3115933's user avatar
2 votes
1 answer
483 views

UML State Machine Diagram - How to model an event that occours repeatedly

I'm trying to model the evolution of a player's energy in a game. I have an "alive" state, and a transition to it from the initial pseudostate that has the effect of setting the initial ...
mell_o_tron's user avatar
4 votes
2 answers
736 views

When modeling requirements, how can I depict class diagram attributes whose allowed values are custom defined and in finite number?

I'm drawing the class diagram that depicts the domain model of a system. This diagram is for requirements analysis purposes so it is completely implementation-agnostic. I want to communicate the ...
cidra's user avatar
  • 321
0 votes
1 answer
19 views

Invalidation scheme for high level data models that is based on low level data

There is a saying about the most challenging aspects of software development is "Cache invalidation and naming things". This question is about the former of the two. Though the nature of the ...
Tormod's user avatar
  • 321
0 votes
2 answers
840 views

Front end (or View) classes compared to back end classes

I am developing an E-Commerce Web application using C# (back-end) and JavaScript (front-end) for a computing shop. This application mainly displays each stored computer, and all information about it (...
X Y's user avatar
  • 301
0 votes
2 answers
67 views

What BPMN symbol should I use when a service outside wants a BPMS to run a workflow?

I want to specify in a BMPN model that a workflow starts whenever a specific service outside tells me to. What standard BPMN symbol shall I use for this? Think of it as a company wants to start a ...
Mohammad's user avatar
0 votes
2 answers
459 views

Explicit Modeling Aggregate Root to avoid State Pattern

In the book Patterns, Principles, and Practices of Domain-Driven Design, chapter 16, entities, Avoid the State Pattern; Use Explicit Modeling has brought the great idea of domain modeling to my life. ...
Ngọc Nguyễn's user avatar
2 votes
3 answers
2k views

Where should the user access bounded context stands in DDD and Clean Architecture?

I have seen some Bounded Context examples to learn DDD. In those examples, the User Access bounded context (register, login, authorization...) is considered a generic bounded context and could be a ...
Ngọc Nguyễn's user avatar
5 votes
2 answers
1k views

How to manage data consistency between Bounded Contexts?

The typical example, the e-commerce system. Let's say the Order is in the Sales bounded context. Every Order contains many OrderLine, which stores the ProductId. The Product is in the Product Catalog ...
Ngọc Nguyễn's user avatar
0 votes
1 answer
433 views

Different Aggregate Root States in Domain Driven Design

I have read the Domain Modeling Made Functional book. In the book, the author model the Order in 3 different states: Unvalidated Validated Priced The 3 states have different properties. But it's ...
Ngọc Nguyễn's user avatar
2 votes
4 answers
1k views

A single sequence diagram for the whole system?

Sequence diagrams are used to model use case scenarios i.e., main success scenarios and alternate scenarios. That's what I understand from Craig Larman's book. I understand that it depends a lot on ...
a_fan's user avatar
  • 145
-1 votes
1 answer
125 views

CQRS Domain Driven Design and single save button

This may be a dumb question, but I don't know how to solve this. I am moving from CRUD to Domain-Driven Design with CQRS. I have seen many DDD examples like this. You could find many more on Github. ...
Ngọc Nguyễn's user avatar
1 vote
3 answers
124 views

How to model a time-distributed process in functional programming style?

I'm searching for any formal/generic approach to modeling a process distributed in time with functional programming. Here is an example. Let's implement a very simple notification service. It accepts ...
Anthony's user avatar
  • 149
0 votes
1 answer
817 views

How to represent a duplicate data store in a data flow diagram (DFD) in the Yourdon DeMarco notation?

I am looking for a way to show duplicate data-stores in data-flow diagrams (DFD). With "duplicate" I mean multiple occurrences of the same symbol to avoid too many crossing flows. In Gane &...
Ice's user avatar
  • 43
1 vote
1 answer
342 views

How to represent association classes in a UML component diagram?

Please consider a class diagram and a component diagram as shown below. In the class diagram I use association classes to represent the relationship between two classes (BaseLink and ShoulderLink) as ...
hielsnoppe's user avatar
-2 votes
1 answer
126 views

How to model a small database application using CRC

I am going through this OO design course: https://www.coursera.org/learn/object-oriented-design/home/welcome and starting to look at the use of CRC cards. (class responsibility collaborators). I ...
user619818's user avatar
  • 1,757
1 vote
1 answer
114 views

Use case descriptions -- where does selection go?

I have a use case for which a user can perform a multiselection. I am writing the use case description and wonder: Should the selection action be documented as a trigger of the use case, or in the ...
user2132190's user avatar
2 votes
1 answer
336 views

Separation of concerns

I'm approaching the DDD way and I was posing myself some questions. Assume that I'm writing an application that lets you define a nutritional week, where you can Define a nutritional week as a ...
Green's user avatar
  • 149
-2 votes
1 answer
170 views

Use 1 to many relationship on same model or split it into two different models?

I'm building a forum application using the Django web framework but I'm not sure how to design the entity relationship diagram when it comes to the Post model. Since one Post can have many replies, ...
flyingfishcattle's user avatar
5 votes
3 answers
17k views

Parallel process flowchart shape in Draw.io

Our drawing tool is draw.io. Occassionally I've got to draw flow charts with it. In those flow charts I've got to express parallel processes (very similar to this UML example). Wikipedia says about ...
OneWorld's user avatar
  • 292
2 votes
2 answers
830 views

How to model relations in UML Class and Object diagram for simple Graph structure

I'm trying to model a simple Graph structure as an UML Class Diagram and Object Diagram. A Graph can have multiple Nodes and knows it's starting Node. Every Node has a predecessor and a successor Node....
Jonas's user avatar
  • 123
0 votes
2 answers
86 views

BPMN - How to handle "under the hood" data change

I have an issue that I'm not sure how to handle regarding modeling. I'm using as my BPMS Flowable My situation: I have a flow (picture below) where are 2 user activities. Each activity manipulates on ...
PastorPL's user avatar
  • 129
3 votes
2 answers
890 views

How to design correctly relationships of class diagrams?

I'm learning OOP so I decided to start a new project, a chess tournament manager. Here you can read about chess tournaments https://en.m.wikipedia.org/wiki/Chess_tournament Basically the user will be ...
user86208's user avatar
0 votes
1 answer
91 views

Should there only ever be one instance of a ViewModel object?

Assume a rather simplistic model: class Person{ static List<Person> LivingPersons String Name List<Person> Dependents } From this it can (hopefully) be seen that a single ...
Harry Will's user avatar
2 votes
6 answers
2k views

UML: what is the correct order of steps?

I was reading an old text book "Beginning C# Object oriented programming" from 2011. The author in one case employs the "use case" to identify classes and then goes to draw a class ...
microwth's user avatar
  • 139
-2 votes
2 answers
96 views

How would you create abstraction for event holding only Ids - references to other objects

class DomainEvent { } and then I have different events with following structure: class SomeEvent extend DomainEvent { private UUID orderId; private UUID orderlineId; private UUID productId; ...
Pesho's user avatar
  • 530
-1 votes
1 answer
98 views

Is UML suitable for designing a warehouse workflow?

I need to design a warehouse workflow: the cartons that enter, then the flow of a box, returns, porcessing of damaged good, cancellation at different stages, and transfer from a stock to another. Each ...
Bastien Vandamme's user avatar
2 votes
1 answer
295 views

What is a good way to understand the relationship between a UML class diagram and an implementation?

At my uni the software design teachers like to ask questions about UML diagrams, such as this: In the following class diagram, can class Bar’s bar() operation modify Bar’s b attribute? Can it modify ...
bp99's user avatar
  • 131
3 votes
1 answer
661 views

Do data stores appears in Level 1 DFD?

Let’s consider that Context diagram is the diagram that describe the system as a single process and level 0 diagram is the one that decomposes this main process into major process and so on. I am ...
John adams's user avatar
1 vote
1 answer
89 views

Creating models for a subscription-based service using third-party payment gateways

If this question is too broad for Q&A format, I'd appreciate a pointer on where to ask it. Suppose that you're using Stripe (or some similar service) to manage the payments for a service of some ...
McDerp's user avatar
  • 75
3 votes
2 answers
314 views

How much UML modeling should you do?

I've used UML modeling a few times in the about a decade ago and I am getting myself reacquainted with it. I found it clarifies an application's design which results in a faster and easier ...
user148298's user avatar
0 votes
1 answer
155 views

Including processes that are external to the system in Use Case diagram and DFD

I am designing a system with several diagram for a project. I am trying to summarize my question with 2 simple diagram which can demonstrate my doubt. Below are my use case diagram and a context ...
Muneer's user avatar
  • 260
3 votes
1 answer
362 views

Is the class stereotype implicit in an UML class diagram ? Should it be specified?

Commonly I see class diagrams where there is no <<class>> stereotype. Others where there is the common <<interface>> and others with some interesting ones as <<shape>&...
sɪʒɪhɪŋ βɪstɦa kxɐll's user avatar
2 votes
1 answer
4k views

how to represent functions and global variables in UML?

I'm going to translate into UML a C++ project I have been doing for a few days and which I estimate convenient to handle as a model for a way better management. The problem is the following: I tried ...
sɪʒɪhɪŋ βɪstɦa kxɐll's user avatar
-2 votes
1 answer
2k views

Simple circular dependency between three classes

I have this basic design with a circular dependency. Is there any solution for this? The problem is that a Machine cannot be created if a Model for that Team has been submitted.
Antonio Santoro's user avatar
0 votes
3 answers
346 views

Is there a way to express arguments for a use case?

I am currently developing a use case diagram for an army generation system in a game I'm developing. I have a process 'GenerateArmy' that requires a combination of troops and a supply limit that are ...
Sebastian King's user avatar
0 votes
1 answer
377 views

What kind of Relations should I have in my E/R Diagram

I am trying to create an Entity/Relationship Chen Diagram for a new APP. Scope is simple enough. I will have multiples types of users login through the same Login Form. What I decided to do... Is ...
Tygreton's user avatar
  • 117
0 votes
1 answer
1k views

How do I represent parallel (multiple) inputs in a UML Sequence diagrams?

I am new to UML sequence diagrams. I saw a few YouTube videos and a few tutorials such as this one. I have a system with multiple inputs, that can interact with the system asynchronously. For example,...
just_learning's user avatar
-2 votes
1 answer
96 views

should the join method be in the Course class or the Student class?

The rule I was taught: "the method should be in the Object that it is invoked on" a student joins a course => the join method should be in the Course class a player drives a car => car.drive(..) ...
lejileg986's user avatar
-1 votes
1 answer
1k views

How can I represent with UML a process that involves queues?

I would like to use UML diagrams to show some processes I am designing and would like to implement. The processes involve using a queue, and adding and taking out elements from it. In one of this ...
KansaiRobot's user avatar

1
2 3 4 5