1 | .. _label-uc-contract-add: |
---|
2 | |
---|
3 | Use-Case: Add a Contract |
---|
4 | *********************************************************************** |
---|
5 | |
---|
6 | Short Description |
---|
7 | ----------------------------------------------------------------------- |
---|
8 | |
---|
9 | A contract is added for some customer. |
---|
10 | |
---|
11 | Actor(s) |
---|
12 | ----------------------------------------------------------------------- |
---|
13 | |
---|
14 | Officer |
---|
15 | |
---|
16 | |
---|
17 | Trigger(s) |
---|
18 | ----------------------------------------------------------------------- |
---|
19 | |
---|
20 | - Imports (modifying existing data) |
---|
21 | - Web form(s) submitted by authorized user |
---|
22 | |
---|
23 | |
---|
24 | Result(s) |
---|
25 | ----------------------------------------------------------------------- |
---|
26 | |
---|
27 | - A new contract was created with unique contract ID. |
---|
28 | |
---|
29 | - Any optional contract-add-ons can be booked for the new contract. |
---|
30 | |
---|
31 | |
---|
32 | Incoming Data |
---|
33 | ----------------------------------------------------------------------- |
---|
34 | |
---|
35 | - Customer ID, service ID, respective contractual parameters (like: |
---|
36 | start of service, end of service, picked payment methods, etc.) |
---|
37 | |
---|
38 | Outgoing Data |
---|
39 | ----------------------------------------------------------------------- |
---|
40 | |
---|
41 | - Message about contract creation |
---|
42 | - Log message |
---|
43 | |
---|
44 | |
---|
45 | Precondition(s) |
---|
46 | ----------------------------------------------------------------------- |
---|
47 | |
---|
48 | - Customer ID must exist and be valid for new contracts. |
---|
49 | - Submitting user must be authorized to perform the operation. |
---|
50 | |
---|
51 | |
---|
52 | Postcondition(s) |
---|
53 | ----------------------------------------------------------------------- |
---|
54 | |
---|
55 | - The contractual parameters were checked for validity. |
---|
56 | |
---|
57 | |
---|
58 | Invariant(s) |
---|
59 | ----------------------------------------------------------------------- |
---|
60 | |
---|
61 | |
---|
62 | Essential Steps |
---|
63 | ----------------------------------------------------------------------- |
---|
64 | |
---|
65 | - System receives customer ID, service ID and any optional parameters |
---|
66 | specifying the contract to create. |
---|
67 | - Passed in service is requested to create a new contract with |
---|
68 | passed-in parameters (contractual details) set (inludes validating |
---|
69 | the passed in data). |
---|
70 | - If passed-in parameters are invalid, user is offered a possibility |
---|
71 | to fix the invalid data. |
---|
72 | - System creates the new contract connecting it to the given |
---|
73 | customer ID. |
---|
74 | |
---|
75 | |
---|
76 | Open Issues |
---|
77 | ----------------------------------------------------------------------- |
---|
78 | |
---|
79 | |
---|
80 | |
---|
81 | Remarks |
---|
82 | ----------------------------------------------------------------------- |
---|
83 | |
---|
84 | |
---|
85 | .. raw:: latex |
---|
86 | |
---|
87 | \pagebreak[4] |
---|