Permalink
Browse files

Added ManageCustomers use case.

  • Loading branch information...
FlukeFan FlukeFan
FlukeFan authored and FlukeFan committed Feb 27, 2009
1 parent 51472e4 commit 7f6aa08086d51a39bdfe351e2f4c26aaae691a84
@@ -103,12 +103,13 @@
</Extension>
</Extensions>
- <!--
<TechnologyDataVariations>
- <Step Id="">
+ <Step Id="1">
+ Deletion of a Library with many Media and Loans could be a lengthy process.
+ There might be a need to mark a Library as 'soft-deleted', and then do the deletion
+ as multiple smaller offline transactions.
</Step>
</TechnologyDataVariations>
- -->
<!--
<Notes>
@@ -0,0 +1,104 @@
+<?xml-stylesheet type="text/xsl" href="../UseCaseToHtml.xsl"?>
+<UseCase Name="Manage Customers">
+
+ <Context Description="Actor creates or modifies the Customers in the system."/>
+ <Level Name="user-goal" />
+ <PrimaryActor Name="Librarian"/>
+
+ <Preconditions Description="Actor is logged on and identified by a User." />
+ <Trigger Description="Actor indicates wish to manage the system's Customers." />
+
+ <Guarantees
+ Success="Customer is created or modified."
+ Minimal="The existing Customers remain unchanged." />
+
+ <MainSteps>
+ <Step Id="1">
+ Actor indicates wish to create a new Customer.
+ </Step>
+ <Step Id="2">
+ System prompts actor for the following information:
+ <ul>
+ <li>Customer name;</li>
+ <li>Customer postal code;</li>
+ <li>Customer address detail;</li>
+ <li>Customer telephone number.</li>
+ </ul>
+ </Step>
+ <Step Id="3">
+ Actor supplies the requested information.
+ </Step>
+ <Step Id="4">
+ System verifies the combination of name and postal code are unique.
+ </Step>
+ <Step Id="5">
+ System creates the Customer as specified and confirms
+ the creation to the actor.
+ </Step>
+ </MainSteps>
+
+ <Extensions>
+ <Extension
+ Id="1a"
+ Description="Actor indicates wish to modify a Customer">
+ <Step Id="1a1">
+ System presents a list of existing Customers.
+ </Step>
+ <Step Id="1a2">
+ Actor selects a Customer.
+ </Step>
+ <Step Id="1a3">
+ System presents the details of the selected Customer.
+ </Step>
+ <Step Id="1a4">
+ Actor modifies any of the following information:
+ <ul>
+ <li>Customer name;</li>
+ <li>Customer postal code;</li>
+ <li>Customer address detail;</li>
+ <li>Customer telephone number.</li>
+ </ul>
+ </Step>
+ <Step Id="1a5">
+ System verifies the combination of name and postal code are unique.
+ </Step>
+ <Extension
+ Id="1a5a"
+ Description="The combination of name and postal code are not unique">
+ <Step Id="1a5a1">
+ System informs the actor that the name/postal code combination is already in use.
+ Processing continues at step 1a4.
+ </Step>
+ </Extension>
+ <Step Id="1a6">
+ System modifies the Customer as specified, and
+ confirms the modification to the actor.
+ </Step>
+ </Extension>
+
+ <Extension
+ Id="4a"
+ Description="The combination of name and postal code are not unique">
+ <Step Id="4a1">
+ System informs the actor that the name/postal code combination is already in use.
+ Processing continues at step 3.
+ </Step>
+ </Extension>
+ </Extensions>
+
+ <!--
+ <TechnologyDataVariations>
+ <Step Id="">
+ </Step>
+ </TechnologyDataVariations>
+ -->
+
+ <Notes>
+ <Note Id="1">
+ There is currently no functionality to delete Customers from the system.
+ </Note>
+ </Notes>
+
+</UseCase>
+
+
View
@@ -285,13 +285,22 @@ <h3>Media</h3>
<h3>Customer</h3>
<table class="umlClass">
<tr><th>Customer</th></tr>
+ <tr class="umlAttribute"><td>Name : string</td></tr>
+ <tr class="umlAttribute"><td>PostalCode : string</td></tr>
+ <tr class="umlAttribute"><td>AddressDetail : string</td></tr>
+ <tr class="umlAttribute"><td>Telephone : string</td></tr>
<tr class="umlSeparator"><td></td></tr>
</table>
<p>
- ...
+ Customers correspond to a human that can be loaned Media. Address detail is
+ used to flesh out any information required to complete an address (e.g., it might
+ be enough to have a postal code and just a house number in the address detail).
</p>
+ <ul>
+ <li>The combination of Customer name and postal code are unique.</li>
+ </ul>
<h3>Loan</h3>
<table class="umlClass">

0 comments on commit 7f6aa08

Please sign in to comment.