Search code examples
umldiagramuse-caseuse-case-diagram

Multiple actors in a use case diagram but all apart of the same general role


So for a forum in where there's different roles on the forum I've got a question. Basically there's an moderator/editor role on the forum where the user can edit posts, then there is another moderator/editor role that can edit general information on the forum, such as basic information or images on the front page.

How would I create a use case diagram with two editor actors? Would I separate them and have them one by one or should i let both the roles inherit from a general editor actor?

Example image


Solution

  • The generalization is perfectly ok. The only thing you need to add is a constraint:

    enter image description here

    That means that both actors can perform Some use case. And the constraint tells that only Actor2 can do "something special" described in the UC scenario.

    Since @bruno was suspicious: if your UC would become something completely different with the constraint you'd model different UCs instead (it's probably the case with yours, but without requirements/context it's impossible to say). However, you can control the flow by attaching a constraint. So the "something special"-part in the flow would be an alternative being skipped for Actor1.

    Your "Being able..." are no use cases at all. A use case shows added value. And it's name predicate-subject(-object).