Sunteți pe pagina 1din 29

Use Case Modeling

Use Case diagram for Banking System:


System
transaction

<<include>>

<<extend>>
invalid card insert card retail institution
user invalid pin
<<include>>
<<extend>>

atm transaction <<include>>


pin validation

invalid login

online transaction
bank employee <<extend>>
web merchant <<include>> Bank Database
<<include>>
login logout

<<include>> <<include>>

client desktop transaction

1. Online Transaction - use case specifications


1.1 Brief Description
Account transaction begins when customer is successfully logged in to the
site. Several menus where displayed related to profile of customer and the
recent transactions and the current account balance.
The main purpose of using online account transactions is to transfer cash
from one account to another for this purpose the customer is provided fields
to specify the accounts to which he is transferring amount. After every
transaction a confirmation is displayed to customer.
The customer is also provided the possibility to change the account login
password, but not the user id, every transaction is added to the bank database.

Flow of Events

1.2 Basic flow

1. User enters username and password.


2. Bank Database validates the user.
3. On success user can transfer money, change his password and view his profile.

1.3 Alternate Flow

If in the basic flow, the details specified by user are invalid then he is informed
that his login is failed .Then the user may quit the system or he may create a new
account.

1.4 Pre Conditions

The user should have a valid account in the bank.

1.5 Post Conditions

The account database is modified after transaction.

2. Client Desktop transaction- Use case specifications


2.1 Brief Description

Client desktop is given to each of bank employees and they are provided
with account logins with a user id and a password. Every employee switches
on his desktop and login to his account through which he can communicate
with bank database.
An employee can have operations like withdrawal of money, giving
loans, furnishing the DD/cheque and customers may want to deposit money.
Bank employee is allowed to modify the database accordingly. And the
intended services are provided to the customers.

Flow of Events

2.2 Basic flow

1. Employee enters his username and password.


2. Bank Database validates the employee.
3. On success employee can withdraw or deposit money, issue loans and
DD/cheque to the customers.

2.3 Alternate Flow

If in the basic flow, the details specified by employee are invalid the he is
informed that his login is failed .Then the person is not employee of the bank and he
is not having authority to perform those actions.

2.4 Pre Conditions

The employee must possess a account login and password.

2.5 Post Conditions

The account database is modified after transaction. Employee issues dd/cheque


to user.
3. Login- Use case specifications

3.1 Brief Description

The online customer or a bank employee has to login to access their


accounts from bank database. A vendor is provided for communication with
bank’s database and this vendor provides safety and atomicity. A user may
be an invalid user so the system has to prompt the person appropriately.

Flow of Events

3.2 Basic flow

1. User enters username and password.


2. Bank Database validates the user.
3. On success user can precede the transaction.

3.3 Alternate Flow

If in the basic flow, the details specified by user are invalid the he is informed
that his login is failed.

3.4 Pre Conditions

The user must possess a login id and password.

3.5 Post Conditions

None.
4. Logout- Use case specifications

4.1 Brief Description

The person who ever logged in to the system or bank database has to logout
after all the work is over. The vendor provided for communication is now
closed from database.

Flow of Events

4.2 Basic flow

1. User clicks the logout


2. All the transactions he performed are reflected in the bank database.

4.3 Alternate Flow

If in the basic flow, if the internet connection is lost user must refresh the page
again.

4.4 Pre Conditions

The user should have been logged in already.

4.5 Post Conditions

None.
5. Invalid Login- Use case specifications

5.1 Brief Description

If a person with a invalid user id or password details want login to the


system, the system has to prompt the person about failure and should not
open the vendor of communication until he furnishes valid user id &
password.

Flow of Events

5.2 Basic flow

1. User enters username and password.


2. Bank Database validates that the login is invalid.
3. Further he may not be allowed to proceed until enters a valid login.

5.3 Alternate Flow

1. If the user enters a valid login he must be allowed to proceed further.

5.4 Pre Conditions

None.

5.5 Post Conditions

None.

6. Card transaction - Use case specifications


6.1 Brief Description

Card transaction includes a credit/debit card. This service is provided by a


retail institution to a card holding customer. The customer may want to buy
any thing form merchant, customer provides the card and the merchant
stripes the card into the card reader then it is checked for validity and if the
card is valid the transaction begins. A credit card will have a credit amount
you can deduct amount more than that. A debit card will be having some
level of funds if the funds are over the transaction will not continue.

Flow of Events

6.2 Basic flow

1. The retailer places the card in card reader.


2. Card reader checks the card validity after that retailer asks the customer
to enter pin number.
3. After entering the pin number retailer enters amount to be paid by customer.
4. Card reader proceeds transaction after that it updates bank Database
and finally gives a receipt to customer.

6.3 Alternate Flow

If in the basic flow, if the card or pin is invalid or the account don’t have
sufficient balance the card reader ejects the card out by giving a receipt.

6.4 Pre Conditions

The User must possess a debit/credit card.

6.5 Post Conditions

The user has to sign in the receipt and put a copy of receipt with him for security
reasons.

7. ATM transaction- Use case specifications


7.1 Brief Description

If a customer approaches an ATM, the person is requested to insert card.


After inserting the card it is checked for validity if the card is valid
transaction continues. And then pin validation is done; if the pin is invalid
the transaction is doesn’t allowed. The customer may have transactions like
checking balance, draw amount and donation. If there are less funds the
transaction is sustained.

Flow of Events

7.2 Basic flow

1. User inserts card in ATM.


2. Bank Database validates the card.
3. On success employee must enter pin and select from his list of services
appeared on the screen.

7.3 Alternate Flow

If in the basic flow, the card or pin is invalid a receipt ejects out from ATM in
response to the error.

7.4 Pre Conditions

The User must possess an ATM card

7.5 Post Conditions

The user must take the receipt.


8. Insert card - Use case specifications

8.1 Brief Description

The customer is requested to insert (swipe) card and the card is taken in and
kept inside for the whole transaction time. Once the transaction is over card
is spelled out

Flow of Events

8.2 Basic flow

1. Customer inserts card in ATM or Card reader


2. ATM or Card reader validates the card.
3. On success user can precede the transaction

8.3 Alternate Flow

If the card is invalid, ATM ejects the card or then it may be taken back from
Card reader and gives a receipt indicating the error number.

8.4 Pre Conditions

The User must possess an ATM card or else a debit/credit card.

8.5 Post Conditions

None.
9. Invalid card - Use case specifications

9.1 Brief Description

The card inserted will be checked for validation. The card may not be
inserted properly or it may be out of date or it can be an invalid for specific
bank. In those situations it is requested for re-insert.

Flow of Events

9.2 Basic flow

1. Customer inserts card in ATM or swipes in Card reader.


2. ATM (Card reader) validates the card is invalid.
3. Customer must re-insert (swipe) the card again.

9.3 Alternate Flow

Even after reinserting the card, if the card is invalid ATM (Card reader) gives a
receipt indicating that the card is invalid.

9.4 Pre Conditions

The User must possess an ATM card or a credit/debit card.

9.5 Post Conditions

None.
10. Pin validation - Use case specifications

10.1 Brief Description

After inserting the card and if it is checked for validation, the user is
requested for pin. The pin is itself present on magnetic strip on back of card and
it is checked with the entered one.

Flow of Events

10.2 Basic flow

1. Customer inserts card in ATM and enter his pin number.


2. ATM validates the pin.
3. On success user can precede the transaction

10.3 Alternate Flow

If the pin is invalid, ATM ejects the card and gives a receipt indicating
the error number.

10.4 Pre Conditions

The User must possess an ATM card.

10.5 Post Conditions

None.
11. Invalid Pin - Use case specifications

11.1 Brief Description

The pin entered may be wrong in that case transaction is cancelled. The
customer is requested for re-inserting of card and re-entry of pin. The
number of wrong trials may be limited according to bank’s specifications.

Flow of Events

11.2 Basic flow

1. Customer inserts card in ATM and enter his pin number.


2. ATM founds that pin is invalid.
3. The customer requested to reinsert card or reenter the pin.
4. In case the number of trials exceeded, ATM blocks the card temporarily.

11.3 Alternate Flow

If customer enters a correct pin transaction proceeds further.

11.4 Pre Conditions

The User must possess an ATM card.

11.5 Post Conditions

The user should not enter the pin number more than the number of trials.

Class Diagram for Banking System:


customer console 0..* credit
+card +amount
+pin funds 1 0..*
+feasibility()
+request() +balance
card reader 1
0..* 0..* retail instituition
+cardholder 1..*
debit 1
donation 0..* 1 +cnctwithDB +amountadded
+amount
+amount draw amount +turnon() +process()
+feasibility() +turnoff()
+feasibility() +amount
1 bank database
1
0..* +feasibility() card validation
+profile
0..* +accno +log
check bal network to bank
1 1 +balance
1 1 +validity()
+balance 0..* +profile
+balance +procesesrequest()
ATM
1 +log
+choice
bank web page
+request()
pin validation +processrequest()
+bankdetails
+pin 1 1 1 +loginform
1 client desktop
+validity() logout +processrequest()
+frontend 1 1
+cnctwithDB 1 1
1 1 1
1 +logout()
withdrawl +turnon() 1
0..* +shutdwn() 0..*
1 1 login
+accno 1
1 0..* transfer of amount
+amount 1
DD/ cheque 0..* +id
1 0..* loan +amount
+feasible() +pswrd
+amount deposit +toaccno
+drawamnt() employee console +amount +validity()
+dispensecash() +amount +feasibility()
+id&pswrd +accno +feasibility()

+transfercash()
Sequence Diagrams
and
Collaboration Diagrams

Online Transaction Sequence Diagram:


online transaction
sequence diagram
customer console network to bank

transaction
1 : loginRequest()
2 : validity()

3 : profileRequest()

4 : display()

5 : transferRequest()

6 : transfer()

7 : succed()

8 : acknowledgement()

9 : transferRequest()

Online Transaction Collaboration Diagram:

1 : login request()

customer console network to bank

4 : display()

7 : succeed()
9 : transfer request()
2 : validity()
3 : profile request()
5 : transfer request() 8 : acknowledgement()

transaction 6 : transfer()

Client desktop Transaction Sequence Diagram:


client desktop transaction
sequence diagram
employee console network to bank database

transaction

1 : login request()
2 : validity()

3 : menuChoice()

4 : proceedTransaction()

5 : accountInfo()

6 : succed()

7 : menuChoice()

8 : proceedTransaction()

Client desktop Transaction Collaboration Diagram:


1 : login request()
employee console netwrk to bank db

8 : transaction proceed()
4 : proceed transaction()
5 : account info()
3 : choice menu()

2 : validity() 6 : succeed()

7 : choice menu()

transaction

Login & Logout Sequence Diagram:


login & logout
desktop front end network to bank sequence diagram

1 : enterId&Pswrd()

2 : verify()

3 : validity()

4 : logout()
5 : reqLogout()

7 : loggedout() 6 : succeded()

Login & Logout Collaboration Diagram:

2 : verify()
1 : enter id pwd() network to bank
desktop front end
3 : validity()

4 : logout() 5 : request logout()

7 : logged out() 6 : succeeded()

ATM Transaction Sequence Diagram:


ATM transaction
sequence diagram
customer console ntwrk to bank
transaction

1 : insert card()

2 : validation()
3 : verified()

4 : ChoiceMenu()

5 : selectservice()

6 : accountInfo()
7 : feasibility()

8 : give receipt()

9 : another transaction()

ATM Transaction Collaboration Diagram:


customer console ntwrk to bank

3 : verified() 7 : feasibility()
9 : another trans()
8 : give receipt()

6 : account info()

4 : choice menu() 1 : insert card()

2 : validation()

5 : select service()

transaction
Card Validation Sequence Diagram:

card validation
sequence diagram

customer panel atm network to bank

1 : insert card()
2 : validation()

3 : card valid()

4 : eject card()

Card Validation Collaboration Diagram:

4 : eject card() 3 : card valid() bank network


customer panel atm

1 : insert card() 2 : validation()


Pin Validation Sequence Diagram:
pin validation
sequence diagram
customer panel atm network to bank

1 : enterpin()

2 : pin validation()

3 : validity()
4 : choiceMenu()

Pin Validation Collaboration Diagram:

customer panel 1 : enter pin() atm 2 : `pin validation() bank network

4 : choice menu() 3 : validity()

Web merchant Transaction Sequence Diagram:


Web merchant transaction
sequence digram

customer retailer card reader network to bank

1 : gives card()

2 : insert card()

3 : validation()

4 : verified()

5 : enter amount()

6 : update bank db()

7 : give receipt()

Web merchant Transaction Collaboration Diagram:

customer retailer card reader


1 : give card() 2 : insert card() 5 : enter amount()

7 : give receipt()

3 : validation()

4 : verified()
6 : update bank DB()

bank network
Activity Diagrams
Online Transaction Activity Diagram:

open web page

create account enter id and pwd

no

valid login
furnish details
yes

choice menu
no

valid details

yes

amount transfer view details


submit change pwd

finished
Client Desktop Transaction Activity Diagram:

customer approaches officer

employee login

no

valid login

yes

choice menu

deposit withdraw issue dd/cheque


passbook entry

proceed transaction
ATM Transaction Activity Diagram:

customer approaches officer

employee login

no

valid login

yes

choice menu

deposit withdraw issue dd/cheque


passbook entry

proceed transaction
Web Merchant Transaction Activity Diagram:

insert card

no

card valid

yes

enter amount

no

sufficient bal

yes

proceed transaction

take receipt

finish
Component Diagram for Banking System:

customer console ATM machine

ATM transaction

Account info

Employee console
Card reader Bank Database

Webpage Client desktop

webmerchant transactrion

online transaction client desktop transaction


Deployment Diagram for Banking System:

Customer may be
ATM card holder,
ATM Machine
credit/debit card holder or
providing services of
an online user of
ATM transaction
a Bank

ATM Machine
Customer Console Bank Database
keeping the details of
each and every account

Bank Database Client Desktop


Card Reader

Client Desktop
providing services of
banking at desks

Web Page Employee Console

Card reader Each employee at


providing services of Bank given a desktop
Web Page and provided with own
credit/debit tranmsaction
providing services of id & password for login to
online transaction the Bank's Database

S-ar putea să vă placă și