1 | .. _label-uc-account-add: |
---|
2 | |
---|
3 | Use-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 | |
---|
14 | Short Description |
---|
15 | ----------------------------------------------------------------------- |
---|
16 | |
---|
17 | A customer account is added to the system. |
---|
18 | |
---|
19 | Actor(s) |
---|
20 | ----------------------------------------------------------------------- |
---|
21 | |
---|
22 | Accountant, Admins |
---|
23 | |
---|
24 | |
---|
25 | Trigger(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 | |
---|
32 | Result(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 | |
---|
46 | Incoming Data |
---|
47 | ----------------------------------------------------------------------- |
---|
48 | |
---|
49 | ID of customer or contract to connect to. |
---|
50 | |
---|
51 | |
---|
52 | Outgoing Data |
---|
53 | ----------------------------------------------------------------------- |
---|
54 | |
---|
55 | - Message about account creation. |
---|
56 | - Log message |
---|
57 | |
---|
58 | |
---|
59 | Precondition(s) |
---|
60 | ----------------------------------------------------------------------- |
---|
61 | |
---|
62 | The entity to connect the account with (customer or contract) already |
---|
63 | exists. |
---|
64 | |
---|
65 | |
---|
66 | Postcondition(s) |
---|
67 | ----------------------------------------------------------------------- |
---|
68 | |
---|
69 | The system accepts transactions for the new account. |
---|
70 | |
---|
71 | |
---|
72 | Invariant(s) |
---|
73 | ----------------------------------------------------------------------- |
---|
74 | |
---|
75 | |
---|
76 | |
---|
77 | |
---|
78 | Essential Steps |
---|
79 | ----------------------------------------------------------------------- |
---|
80 | |
---|
81 | 1. Authenticate request |
---|
82 | 2. Check existence of contract/customer to connect to |
---|
83 | 3. Check that no other account is already connected |
---|
84 | 4. Create account in DB |
---|
85 | 5. Notify system |
---|
86 | |
---|
87 | |
---|
88 | Open Issues |
---|
89 | ----------------------------------------------------------------------- |
---|
90 | |
---|
91 | We should discuss, whether accounts are connected to customers _or_ |
---|
92 | contracts. |
---|
93 | |
---|
94 | |
---|
95 | Change Log |
---|
96 | ----------------------------------------------------------------------- |
---|
97 | |
---|
98 | +------------+----------+------------+--------------------------------+ |
---|
99 | | Timestamp | Who | New Status | What | |
---|
100 | +------------+----------+------------+--------------------------------+ |
---|
101 | | 2013-11-07 | uli | init | Initial state | |
---|
102 | +------------+----------+------------+--------------------------------+ |
---|
103 | |
---|
104 | |
---|
105 | Remarks |
---|
106 | ----------------------------------------------------------------------- |
---|
107 | |
---|
108 | |
---|
109 | .. raw:: latex |
---|
110 | |
---|
111 | \pagebreak[4] |
---|