How to create a UML class diagram with non-object oriented objects?

I am writing code in ABAP and have implemented a template template. I like to draw some UML class diagrams for this. Doing this in UML for classes is not a problem. But my class is implemented in a functional module (specific SAP terms), it looks like a stand-alone method that I use to make the implementation available for remote procedure call.

So the best opportunity is to get a functional module without oo and oo classes in one diagram. Any ideas?

EDIT: Are you allowed to mix component and class diagrams?

+1
source share
5 answers

Treat / each function as a class with one (static) method?

+1
source

Organize functions into logical groups (for example, their functional groups). Create a utility class for each logical group and place functions as static members of these utility classes.

+1
source

We use a class with a sterot <<function pool>> to represent - well - a pool of functions and methods with the stereotype <<function module>> to represent functional modules. You can do the same with FORM routines, MODULE s, routine pools, etc. We also tend to use a stereotype-based coloring scheme, so that the interfaces are shaded in green, obsolete procedural elements, such as function pools, are red and so on. Unfortunately, since there is no viable modeling tool that ties a system to a model, and model to system, its quite a lot of work to use UML to develop ABAP.

+1
source

There are more class diagrams than UML class diagrams, based on the limited information provided. I would make the SAP invoker element an external actor in the system, using the system boundary to contain the OO aspects of the system documented in the Class diagram, use the action diagram to document the complete workflow.

0
source

In the orientation of the object (and class) everything is considered as an object, not even objects !!!

Modules, namespaces, and libraries are one of the things that UML Creators do not seem to notice.

Many designers represent global elements enclosed in a file, namespace or module, representing the module as a separate object or class.

I languages, such as Javascript, modules, are enclosed in a single object or global object.

This is a general example of how non-OO can be implemented.

 ...................................................................... ..+----------------------------------------------------------------+.. ..| <<module>> |.. ..| Strings |.. ..+----------------------------------------------------------------+.. ..| [+] String[]: Letters <<constant>> <<global>> |.. ..| [+] String[]: Digits <<constant>> <<global>> |.. ..+----------------------------------------------------------------+.. ..| [+] String: ToUppercase(String Value) <<function>> <<global>> |.. ..| [+] String: ToLowercase(String Value) <<function>> <<global>> |.. ..+----------------------------------------------------------------+.. ...................................................................... 

Greetings.

-1
source

Source: https://habr.com/ru/post/887438/


All Articles