.. _label-uc-contract-manage: Use-Case: Manage Contract Data *********************************************************************** .. Description of a use case .. The description must be formulated as seen from system (not: actors) .. Describes those changes an (outside) actor can notice .. Short and abstract as possible, as long as necessary. .. Each use case must have at least one actor involved .. Each use case must have a trigger and a result Short Description ----------------------------------------------------------------------- A contract is modified by staff. Actor(s) ----------------------------------------------------------------------- Staff Trigger(s) ----------------------------------------------------------------------- - Imports (modifying existing data) - Web form(s) submitted by authorized user. Result(s) ----------------------------------------------------------------------- - Contract data of the given contract is modified. - Any optional contract-add-ons can be booked for the new contract. Incoming Data ----------------------------------------------------------------------- - Contract ID, names and values of parameters to change. Outgoing Data ----------------------------------------------------------------------- - Message about contract modification. - (optional) regarding customer is informed by email or SMS. - Log message Precondition(s) ----------------------------------------------------------------------- - Contract ID must exist. - Submitting user must be authorized to perform the operation. Postcondition(s) ----------------------------------------------------------------------- - The contractual parameters were checked for validity. Invariant(s) ----------------------------------------------------------------------- Essential Steps ----------------------------------------------------------------------- - System receives contract ID and any optional parameters specifying the data to change in the contract. - Data is validated. - If passed-in parameters are invalid, user is offered a possibility to fix the invalid data. - System updates the given contract. Open Issues ----------------------------------------------------------------------- Remarks ----------------------------------------------------------------------- .. raw:: latex \pagebreak[4]