Warm tip: This article is reproduced from serverfault.com, please click
uml

How to show application restart in UML?

发布于 2020-12-02 11:55:22

I need to show some failure and their recovery in UML. For example and application crash and its restart using a Monitor application, which diagram would be best to show these scenarios, I tried with sequence diagram, but it seems there should be better way to explain this as no message can show a crash in application. So my question is what is the best way to show these scenarios?

Questioner
Kryptonian
Viewed
0
qwerty_so 2020-12-02 20:51:40

It does not matter much whether you use an activity or sequence diagram. Your problem is probably that you did not step out of your application world. The restart is issued from a place outside your application in the operating system. There you have some task manager or whatever it's called which is responsible for concurrently running applications. That is a process of its own. At some time it starts your application (either due to some user interaction or based on some other event). Now you have your application process being created and running. At any time the OS can send some kind of signal to that process. This is different between the OSs but basically you have some exception handler automatically compiled in your code that accepts the signal and exits. Otherwise the OS has means to abort a process without being nice. Showing all that stuff is usually not meaningful (except you are in a OS class teaching people how it works).

Long story short: if you really need to show the restart, stick to something simple. In a SD it would be the creation of your app by the OS and the final kill. Similarly you can show a forking process creation and termination in an AD.