Themes in class diagrams (UML)

As we show, a thread is called, and inturn calls other threads in the UML diagram. This is more like WorkFlow. Is it possible to imagine in UML

+4
source share
3 answers

The sequence diagram should do the job.

+4
source

Agree with @Yasin, a sequence diagram can do the job.

An action diagram is another option that works well for displaying a workflow. Parallelism, threads, synchronization, etc., are certainly one of the sweet spots and may be easier to understand on an activity diagram than on a sequence diagram.

NTN.

+1
source

UML is a language with very structured syntax and semantics. See the UML Specification at http://www.omg.org/spec/UML

To answer your question, think that in UML Thread is an active class. The metaclass of the UML class actually owns a boolean attribute called isActive with the semantics you need. The active class owns the classifier behavior, which is the behavior that will be executed automatically for each object as soon as an instance of the class is created. If the behavior is modeled using an action or interaction in which other active classes are created (Create action), then this is semantically similar to a thread that creates other threads.

0
source

All Articles