source: main/eko-disco-specs/trunk/use-cases/account-add.rst @ 10721

Last change on this file since 10721 was 10714, checked in by uli, 11 years ago

Add account use-case.

File size: 2.8 KB
RevLine 
[10714]1.. _label-uc-account-add:
2
3Use-Case: Add a Customer Account
[10584]4***********************************************************************
5
6.. Description of a use case
7.. The description must be formulated as seen from system (not: actors)
8.. Describes those changes an (outside) actor can notice
9.. Short and abstract as possible, as long as necessary.
10.. Each use case must have at least one actor involved
11.. Each use case must have a trigger and a result
12
13
14Short Description
15-----------------------------------------------------------------------
16
[10714]17A customer account is added to the system.
[10584]18
19Actor(s)
20-----------------------------------------------------------------------
21
[10714]22Accountant, Admins
[10584]23
24
25Trigger(s)
26-----------------------------------------------------------------------
27
[10714]28- Some customer or contract is added to the system.
29- A respective web form is requested from the system.
[10584]30
31
32Result(s)
33-----------------------------------------------------------------------
34
[10714]35- The new account was created in system with a new unique ID.
[10584]36
[10714]37- A (nearly empty) account history can be retrieved for the new
38  account.
[10584]39
[10714]40- The new account is connected to some contract or customer.
41
42- Authorized users can get the current account balance of the account.
43
44
45
[10584]46Incoming Data
47-----------------------------------------------------------------------
48
[10714]49ID of customer or contract to connect to.
[10584]50
51
52Outgoing Data
53-----------------------------------------------------------------------
54
[10714]55- Message about account creation.
56- Log message
[10584]57
58
59Precondition(s)
60-----------------------------------------------------------------------
61
[10714]62The entity to connect the account with (customer or contract) already
63exists.
[10584]64
65
66Postcondition(s)
67-----------------------------------------------------------------------
68
[10714]69The system accepts transactions for the new account.
[10584]70
71
72Invariant(s)
73-----------------------------------------------------------------------
74
75
76
77
78Essential Steps
79-----------------------------------------------------------------------
80
[10714]811. Authenticate request
822. Check existence of contract/customer to connect to
833. Check that no other account is already connected
844. Create account in DB
855. Notify system
[10584]86
87
88Open Issues
89-----------------------------------------------------------------------
90
[10714]91We should discuss, whether accounts are connected to customers _or_
92contracts.
[10584]93
94
95Change Log
96-----------------------------------------------------------------------
97
98+------------+----------+------------+--------------------------------+
99| Timestamp  | Who      | New Status | What                           |
100+------------+----------+------------+--------------------------------+
[10714]101| 2013-11-07 | uli      | init       | Initial state                  |
[10584]102+------------+----------+------------+--------------------------------+
103
104
105Remarks
106-----------------------------------------------------------------------
107
108
109.. raw:: latex
110
111      \pagebreak[4]
Note: See TracBrowser for help on using the repository browser.