\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.
\textit{TODO add figure of use case diagram}

In the following sections, a sequence diagram is modeled and described for each
individual use case.
\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addclaim.eps}
      \end{turn}
    \end{center}
\end{figure}


\section*{Add a new client}
An employee can add a new client to the system.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addclient.eps}
        \end{turn}
    \end{center}
\end{figure}


\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addcrosssellopportunity.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addindividualinsurance.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addinsurancepackage.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Add a new payment}
An employee can add a new payment to the a client-policy pair.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addpayment.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addproposal.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addrepresentative.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addrisk.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addtypeofclient.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Addupsellopportunity.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Basiccalculationsviawebsite.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Convertproposal.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Deletepayment.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Deletepolicy.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Deleteproposal.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit a claim}
An employee can edit an existing claim.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editclaim.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit a client}
An employee can edit an existing client.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/EditClient.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editindividualinsurance.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit an insurance package}
First the employee is checked to see if he/she has the right authorization level.
If he has the appropriate level, he can edit an insurance package.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editinsurancepackage.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit a payment}
An employee can edit an existing payment.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editpayment.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit a policy}
An employee can edit an existing policy.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editpolicy.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Edit risk}
An employee can edit an existing risk.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Editrisk.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Edittypeofclient.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Employeemanagement.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Generate government report}
A report can be generated which contains all details of an insurance policy.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Generatereport.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Internalcareertracking.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/ManageTimesheet.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Query a client}
An employee can query a client.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Queryclient.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Queryinsurancepackage.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Query a payment}
An employee can query a payment.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Querypayment.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Query a policy}
An employee can query a policy.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Querypolicy.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Query a proposal}
An employee can query a proposal.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/QueryProposal.eps}
        \end{turn}
    \end{center}
\end{figure}

\section*{Query a risk}
An employee can query a risk.
\begin{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Queryrisk.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Removeclaim.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Removecrosssellopportunity.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Removerepresentative.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Removerisk.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Removeupsellopportunity.eps}
        \end{turn}
    \end{center}
\end{figure}

\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{figure}
    \begin{center}
        \epsfxsize=10cm
        \begin{turn}{270}
            \epsffile{Images/Searchcallerdetails.eps}
        \end{turn}
    \end{center}
\end{figure}

