\chapter{User Scenarios} This chapter will illustrate all the use cases derived from the requirements. Each requirement is modeled in the use case diagram as a single use case. The use case diagram is shown below. In the following sections, a sequence diagram is modeled and described for each individual use case. \begin{figure}[ht] \section*{Add a new claim} An employee can add a claim to the claim list of a policy, first the claim has to be created. \begin{center} \includegraphics*[angle=270, width=8cm, keepaspectratio]{Images/Addclaim.eps} \end{center} \end{figure} \begin{figure}[ht] \section*{Add a new client} An employee can add a new client to the system. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addclient.eps} \end{center} \end{figure} \begin{figure}[ht] \section*{Add a new cross sell opportunity} First the employee is checked to see if he/she has the right authorization level (of the Business department). If he has the appropriate level, he can add an up sell opportunity to the up sell opportunities list. After it is added, the system will check if their are any insurances which apply to the opportunity. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addcrosssellopportunity.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add an new individual insurance} First the employee is checked to see if he/she has the right authorization level ( of the Business department). If he has the appropriate level, he can create a new insurance. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addindividualinsurance.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add an new insurance package} First the employee is checked to see if he/she has the right authorization level ( of the Business department). If he has the appropriate level, he can create a new insurance package and add single insurances. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addinsurancepackage.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new payment} An employee can add a new payment to the a client-policy pair. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addpayment.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new proposal} First the employee is checked to see if he/she has the right authorization level ( of the Business department). If he has the appropriate level, he can create a new insurance proposal. After the proposal has been created, the system will check if there are any cross or up sell opportunities that apply to the insurance used in the proposal. After the two checks, the risks which the proposal insures are created and added to the risk list of the proposal. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addproposal.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new representative} An employee can add a representative to a clients list of representatives. Before the representative can be added to list, it has to be created. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addrepresentative.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new risk} Before a risk can be added to the risks list of a insurance proposal, it has to be created. \begin{center} \includegraphics*[angle=270, width=8cm, keepaspectratio]{Images/Addrisk.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new type of client} First the employee is checked to see if he/she has the right authorization level. If he has the appropriate level, he can create a new client type. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addtypeofclient.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Add a new up sell opportunity} First the employee is checked to see if he/she has the right authorization level (of the Business department). If he has the appropriate level, he can add an up sell opportunity to the up sell opportunities list. After it is added, the system will check if their are any insurances which apply to the opportunity. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Addupsellopportunity.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Do basic calculations via website} If a user is logged in at the website he can create an insurance proposal. If the proposal is created and the risks (1..N) are specified, it is used to calculate a premium amount. After the premium amount has been calculated, the proposal and the risks (1..N) will be deleted again. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Basiccalculationsviawebsite.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Convert a proposal into a policy} First the employee is checked to see if he/she has the right authorization level. If he has the appropriate level, he can convert the proposal into a policy. A new policy is created and a payment info will be created and will be attached to it. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Convertproposal.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Delete a payment} First the employee is checked to see if he/she has the right authorization level. If he has the appropriate level, he can delete a payment. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Deletepayment.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Delete a policy} First the employee is checked to see if he/she has the right authorization level. Then the policy, the payment info ,the payment (1..N) attached to it and the claims (1..M) attached to it will be deleted. The proposal attached to it will not be deleted, because it can be reused. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Deletepolicy.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Delete a proposal} First the employee is checked to see if he/she has the right authorization level. Then the proposal and the risks (1..N) attached to it will be deleted. Because of the deleted proposal, the attached policy will also be deleted if there exists one. The Payment info, claims (1..K) and the payments (1..M) attached to the policy will be deleted last. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Deleteproposal.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit a claim} An employee can edit an existing claim. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Editclaim.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit a client} An employee can edit an existing client. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/EditClient.eps} \end{center} \end{figure} \clearpage \begin{figure}[h] \section*{Edit an individual insurance} First the employee is checked to see if he/she has the right authorization level. If he has the appropriate level, he can edit a single insurance. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Editindividualinsurance.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit a payment} An employee can edit an existing payment. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Editpayment.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit a policy} An employee can edit an existing policy. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Editpolicy.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit risk} An employee can edit an existing risk. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Editrisk.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Edit a type of client} First the employee is checked to see if he/she has the right authorization level. If he has the appropriate level, he can edit a client type. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Edittypeofclient.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Employee management} First the employee is checked to see if he/she has the right authorization level (of the Business department). If he has the appropriate level, he can search, add or remove a salary record from the list of salary records. If a salary record is added to the list, it first has to be created. When removing a salary record from the list, it will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Employeemanagement.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Generate government report} A report can be generated which contains all details of an insurance policy. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Generatereport.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Do internal career tracking} First the employee is checked to see if he/she has the right authorization level (of the Business department). If he has the appropriate level, he can search, add or remove a career step from the list of career steps. If a career step is added to the list, it first has to be created. When removing a career step from the list, it will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Internalcareertracking.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Manage a time sheet} When a employee wants to manage his timesheets, he can add, search and remove timesheets. Before he adds a timesheet to his timesheet list, he must first create it. If he removes a timesheet from his timesheet list, the timesheet will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/ManageTimesheet.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query a client} An employee can query a client. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Queryclient.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query an insurance package} First the employee is checked to see if he/she has the right authorization level (of the Business department). If he has the appropriate level, he can query the insurance package. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Queryinsurancepackage.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query a payment} An employee can query a payment. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Querypayment.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query a policy} An employee can query a policy. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Querypolicy.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query a proposal} An employee can query a proposal. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/QueryProposal.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Query a risk} An employee can query a risk. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Queryrisk.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Remove a claim} An employee can remove a claim from a insurance policy list of claims. If the claim is removed from the list, it will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Removeclaim.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Remove a cross sell opportunity} First the employee is checked to see if he/she has the right authorization level ( of the Business department). If he/she has the appropriate level, he can remove an cross sell opportunity from the list. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Removecrosssellopportunity.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Remove a representative} An employee can remove a representative from a clients list of representatives. If the representative is removed from the list, it will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Removerepresentative.eps} \end{center} \end{figure} \clearpage \begin{figure}[h] \section*{Remove a risk} An employee can remove a risk from a insurance proposal list of risk. If the risk is removed from the list, it will be deleted. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Removerisk.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Remove an up sell opportunity} First the employee is checked to see if he/she has the right authorization level ( of the Business department). If he/she has the appropriate level, he can remove an up sell opportunity from the list. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Removeupsellopportunity.eps} \end{center} \end{figure} \begin{figure}[h] \section*{Search caller details} the system will show the caller details, if the caller is known to the system. A caller is known if he/she is stored as a client. \begin{center} \includegraphics*[angle=270, width=10cm, keepaspectratio]{Images/Searchcallerdetails.eps} \end{center} \end{figure}