Reputation: 11
I want that my agent “Cittadino” entry in OPT only if he is logged.
Is it corret my diagram? Or actor must be outside OPT?
Thanks so much
https://i.sstatic.net/MIpeZ.jpg
Upvotes: 0
Views: 288
Reputation: 6318
Yes, it is correct in terms of UML compliance for opt
part.
Let me question the existence of the whole opt
in the first place. As I understand you're showing some behaviour and to perform that behaviour the actor has to be (earlier) logged into the system. If yes, make that a constraint of a behaviour in which case you don't have to depict that in the diagram of the behaviour itself at all.
Also I have doubts about the alt
part. If only internal processing (arrows 1.1.1. and 1.1.2.) depend on conditions, only they should be inside opt
. Arrows 1.1. and 1.1.3. have stay outside of it. In general your arrows should not cross the borders of an expansion region unless you really know what you're doing.
Upvotes: 1