Point of Sales Terminal (Post) Using Uml: February 2018
Point of Sales Terminal (Post) Using Uml: February 2018
net/publication/323073643
CITATION READS
1 30,166
1 author:
Deepesh Khaneja
Carleton University
8 PUBLICATIONS 1 CITATION
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Deepesh Khaneja on 09 February 2018.
PROJECT REPORT
In addition, the system requires user log in to use POS software. Cashiers, Managers and administrators
are the users that can access POS. Further, the protected and confidential system management functions
can only be accessed by administrators for security purposes. These systems should be fault tolerant and
have the capability to run offline sales and cash management when remote services are temporarily
unavailable. It is assumed that self-checkout functionality is missing in the system described and always
involves cashier for the transactions.
COMET METHODOLOGY
This project leverages COMET methodology to develop the Point of Sales System from high level to low
level designing. This method consists of three steps for software development, requirement modelling,
analysis modelling and design modelling. These steps are described in detail with the supporting diagrams
in the subsequent Sections.
1. Requirement Modelling
This section of the report is the starting point of building our system describing initial screening of the
problem statement. The concept of basic design is construed into possible use cases and the diagram is
termed as Use Case Diagram. It includes identifying primary actors, system under development and its
functionality in terms of used cases. For the selected use cases, a narrative description is provided.
Fig 1. below depicts the use case diagram of POS terminal and the most important two use cases found
are highlighted in green color. Checkout including scanning, applying reward points, calculating total price
and payment is the first selected use case. Payment, which is part of checkout, can be by Debit/Credit,
Cash or Loyality Card is the second use case diagram.
a. USE CASE DIAGRAM
Preconditions Cashier scanned all the items and total is available on display
screen
Description 1. Cashier asks for the mode of payment
2. Customer chooses the mode of payment either
debit/credit, cash or reward/gift card.
3. Cashier selects the method on POS software.
4. Customer make the payment
5. Payment approved message and receipt is generated.
Alternatives 1. Customer chooses to pay by any combination of three
payment methods.
2. If customer chooses to pay by debit/ credit but enters the
wrong pin.
3. If customer selects card/debit payment and tap the card
but tap is not applicable.
4. If customer chooses to pay by cash but don’t have sufficient
amount.
5. If customer chooses to pay by gift or reward card but the
balance is not enough.
6. If customer enters the wrong pin three times, the card will
be blocked.
7. If the total sale amount is above $100, the tap on card will
not work.
Post Conditions Payment is approved.
Physical class diagram in Fig.2 illustrates the abstract classes of the system. Our system is POS terminal
where a customer is served and consists all the hardware and software interface to complete checkout
and payment.
b. System Context Diagram
In the figure 3, it can be observed that external actors interact with the components of the system POS
Terminal software and components provide input or output to the system.
The sequence diagram shown above in figure considers the POS system as black box and two actors
customer and cashier perform their operations. The happy path would be all items scanned successfully,
payment is approved and receipt is generated.
b. Sequence Diagram of Checkout
In the sequence diagram of Checkout in fig. 7, primary actors cashier and customer interacts with other
objects of the system to complete the process. POS server, an application running on the computer is
responsible for interfacing objects printer, display screen, bar code scanner. The server stores all their
information in computer memory as well as in the database of product catalogue, product specification
and inventory system on cloud. Sales in Line object represents the sales transaction of items to be sold.
The happy paths are shown in red and blue bounding boxes. Scanning all the items through bar code
scanner by cashier, retrieving their information, displaying their unit prices and preparing a list completes
the first phase of checkout process.
Second phase is the successful payment made by the customer for which system generates receipt and
cashier supply receipt to the customer.
c. State Machine of Checkout
The process of check out involves authorization of the user i.e. cashier with login id and password. The
whole process is represented in the state machine of Checkout where system starts in idle state after
login. As soon as the scanning of first item start, a new sale is created providing header to the bill receipt
and items are lined up after retrieving their specification. Further scanning of items just adds up in the
existing list and reaches idle state if no scanning is done. In the event of scan error due to bar code error,
the cashier performs manual procedure of entering price, name and qty in the list. Once the last item
signal is send to the application, the payment method is invoked which is chosen by the customer. Receipt
is generated, inventory is updated and transaction is completed on approval of payment.
The state machine in fig. 11 is an extension of payment method rom Checkout process. Once the payment
state is reached, the system will wait for customer’s selection. If the chosen method is either cash or
Gift/Loyalty card then the amount verification is done to ensure the balance is greater or equal to amount.
Otherwise, if atm card payment is selected then after payment authorization, the card reader will wait for
either tap or card insertion. The pin will be required if the card is inserted requiring pin validation. After
three wrong attempts, card will be blocked and customer’s selection will be required again. The
transaction approved state will be reached if the payment is successful from either three methods or
combination of two.
The state machines described above follows the path of operations described in sequence diagrams. The
possible alternatives and happy paths are included well. The sequence diagrams depict the process as
described in use cases in sequential manner whereas state charts depict that sequence through states
maintaining the semantics of sequence diagrams.
The integrated state chart in fig. 12 consists of five composite states – Authorization state, Idle state,
Processing new sale, Processing Payment state and Transaction completion state. The state machines of
checkout and payment are merged together in the integrated version and composite states are defined
including possible alternatives. The states are grouped together to form super states or composite states
representing a hierarchical structure.
3. Design Modelling
In this last step of Comet Methodology, the software architecture is designed mapping analysis model to
operational environment. Using subsystem criteria, the system is structured into subsystems. The
following sections illustrate with diagram the process of subsystem structuring, designing high and low
level details. Finally, designing the concurrent task architecture of subsystems. The final distributed
architecture is shown which integrates the lowlevel details of subsystems to show concurrent
collaboration diagram. Lastly, an example deployment diagram is shown in fig. 22.
a. Structure of Subsystems
References
■ http://www.programsformca.com/2012/03/uml-diagrams-point-of-sale-terminal.html
■ http://www.csie.ntut.edu.tw/sdrc/files/course/20061201/SoftwareRequirementSpecification.pdf
■ http://softeng.polito.it/tongji/SE/ex/The-POS-system.pdf
■ “Restaurant Point-of-Sale System”, by Moustafa H.Abdelbaky et al.