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