29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Actors can be identified by asking users questions such as who uses the system<br />

and who manages the system. In our Online Catalog sample the answers to<br />

these questions are:<br />

► Buyer<br />

► Business owner<br />

As you can see, in our example these actors are fairly simple and distinct. The<br />

function of each within the application appears to be different, based on the<br />

names. If the distinction is not as clear in your application, consider things such<br />

as security levels or training required for the user.<br />

Use cases<br />

Use cases depict interaction between the actor and the system. They represent<br />

functionality available to an actor. A collection of transactions that can be<br />

identified as a unit of work is a good candidate for a use case. Use cases are<br />

depicted by a ellipse in UML notation, as shown in Figure 2-3.<br />

Use Case<br />

Figure 2-3 UML notation of a use case<br />

Use-case model analysis usually starts with an overall main use-case diagram<br />

with actors and major use cases. In the case of our sample application, we see<br />

two main interaction types with the application. These two interactions are<br />

identified as:<br />

► Maintain inventory<br />

► Buys item<br />

Figure 2-4 on page 25 shows the main use-case diagram for our sample. You<br />

can see the major use cases and the relationship with the actors.<br />

24 <strong>IBM</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> - Express V5.0.2 Developer Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!