Responding to ali...
> i have a scenario where we are developing a product .In the end how
> many roles will be in the product and what permission each role will
> have is something that changes product by product.
> How can i model actors.
>
> 1) Is making every right/permission an actor the way to go. (This gets
> complicated when i make sequence diagrammes)
Usually not. Actors are external entities that interact with the
software being designed. They can be users, other software, or even
hardware. Typically they are generic based on broad classes of entities
in the problem space. Thus the problem space may regard system
administrators as different than sales clerks and that distinction may
be important to the problem being solved by the software. But the
software doesn't care whether a particular sales clerk is Fred or Carol.
The notion of rights and permissions is orthogonal to entities. At best,
it is a characteristic of a particular entity, like a sales clerk.
Typically it is part of the login procedure for a particular user in the
actor class to identify characteristics of the actor in hand that are
important to the solution of the problem. That can be done by
registering the particular sales clerk or the sales clerk can supply the
information each time the entity logs in.
> 2) Or should i make generic actors and use cases and define a
> relationship matrix later. (this is i think the way to go)
This would usually be the case. But the push back is: what
relationships? Between agents? Between agents and requirements? Between
agents and the software? Between requirements?
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
Imagine how much more difficult physics would be if electrons had feelings
-- Richard Feynman
Rene Descartes went into a bar. The bartender asked if he would like a drink. Descartes said, "I think not," and disappeared.
H. S. Lahman
H.la...@verizon.net
software blog:
http://pathfinderpeople.blogs.com/hslahman/index.html
software book: Model Based Development, Addison-Wesley, 2011
geology book: The Evolution and Utilization of Marine Resources, MIT Press, 1972