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
Line 
1.. _label-uc-account-add:
2
3Use-Case: Add a Customer Account
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
17A customer account is added to the system.
18
19Actor(s)
20-----------------------------------------------------------------------
21
22Accountant, Admins
23
24
25Trigger(s)
26-----------------------------------------------------------------------
27
28- Some customer or contract is added to the system.
29- A respective web form is requested from the system.
30
31
32Result(s)
33-----------------------------------------------------------------------
34
35- The new account was created in system with a new unique ID.
36
37- A (nearly empty) account history can be retrieved for the new
38  account.
39
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
46Incoming Data
47-----------------------------------------------------------------------
48
49ID of customer or contract to connect to.
50
51
52Outgoing Data
53-----------------------------------------------------------------------
54
55- Message about account creation.
56- Log message
57
58
59Precondition(s)
60-----------------------------------------------------------------------
61
62The entity to connect the account with (customer or contract) already
63exists.
64
65
66Postcondition(s)
67-----------------------------------------------------------------------
68
69The system accepts transactions for the new account.
70
71
72Invariant(s)
73-----------------------------------------------------------------------
74
75
76
77
78Essential Steps
79-----------------------------------------------------------------------
80
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
86
87
88Open Issues
89-----------------------------------------------------------------------
90
91We should discuss, whether accounts are connected to customers _or_
92contracts.
93
94
95Change Log
96-----------------------------------------------------------------------
97
98+------------+----------+------------+--------------------------------+
99| Timestamp  | Who      | New Status | What                           |
100+------------+----------+------------+--------------------------------+
101| 2013-11-07 | uli      | init       | Initial state                  |
102+------------+----------+------------+--------------------------------+
103
104
105Remarks
106-----------------------------------------------------------------------
107
108
109.. raw:: latex
110
111      \pagebreak[4]
Note: See TracBrowser for help on using the repository browser.