Search code examples
umluse-case-diagram

Can Database be count as actor in use case diagram?


I am creating application for Diabetes log system. I am confused whether database in UML -Use case diagram count as actor or not ?

the application is recording the diabetes glucose reading which will be saved in firebase and it can also retrieve the readings for showing the progress in chart format.

please can someone help me?

thank you.


Solution

  • That depends on what use case diagram are you working on. UML standard does not attach diagrams to levels of abstraction.

    You can create a use case for the behaviour of the whole product with the whole surrounding system and all human users - from the point of view of an external user. And you can create it for a better explanation of behaviour of a small sub-sub-subsystem.

    In the first case, even the main application won't appear as an agent or meant as a subject. In the second case, if that subsystem works with DB, DB will be an agent.

    UML is a free enough standard and rarely strictly forbids something.