This use case describes the process of an external user opening a ACME job.
This use case needs to be refactored and made more readable.
Specific problems:
- Users can have multiple ACME sessions open per PC
- Users can be logged into more than one PC
- This use case is complicated and may need to be refactored to be more readable
- A Job module (such as Job Information/Characteristics) may be locked by another user
- A Job may be opened by another user, but no modules may be currently locked by that user
- External User
- Administrator
- The ACME Editor is actively running when the use case begins
- There may only be one ACME Editor open, or there may be multiple Editors open.
- The user may have a job already open in the current Editor, or not.
- In a networked environment, another user may have the job open
- Security may be enabled or disabled
- The user is in the ACME Editor, but does not have a job open in the Editor
- The user selects an option to open a job
- The system invokes the List Jobs use case to let the user select a job to open
- The user selects a job to open
- If the Job Characteristics module in the job is locked by another user:
- The system warns the user that the module is locked by another user (and provides that user's name)
- The system opens the job in the current editor in read-only mode
- Else, if another user is in the job but has no modules locked:
- The system warns the user which other users are editing this job at this time
- The system opens the job in the current editor
- Else (if the job is not currently opened by another user)
- The system opens the job in the current editor
- The system records a note that this user opened the job at this date/time
- The system records a note that the user is currently editing the job
- In any case
- The ACME Editor is displayed
- The ACME Navigator is displayed with it's options enabled
- When the user selects the Edit Job (i.e., "job characteristics") option
- If the user has write permission in this functional area
- If the module is not locked by another user
- The system locks the job at the Edit Job level
- The user modifies the job information as desired
- When the user selects an option to save and close the Job Characteristics, the Job Characteristics module lock is released
- Else, if the user has read-only permission in this area
- The system opens to the Edit Job information in read-only mode
- Else, if the user has "hidden" access to job information, they are not allowed to open the Job Characteristics screen
- Either the Job Information button is deactivated, or the permission takes effect when the user clicks the button
- A new job is opened in the current ACME Editor
- The system is aware that this user is currently editing this job
- If the user has Edit permission on the Job Information, and the user is in the Edit Job Information module, the system will maintain information to know that this user has this module locked
- The user has a clean job open in an Editor, and the selects an option to open a job
- The system invokes the List Jobs use case to let the user select a job to open
- The user selects an option to open the selected job
- The system detects that the job is currently being edited by another user
- The system prompts that "Note: The following users also have the job open: [list users]. Continue opening, or Cancel?"
- If the user select Cancel, the job-open process is stopped at this point
- Else, if the user selects "Continue opening"
- Continue with the rest of this use case (but with the job in "read-only" mode)
- The system prompts the user - "Open job in current Editor? Open a new Editor frame? Cancel?"
- If the user selects Cancel, the Job Open operation is stopped, and system displays the current ACME Editor in the state just prior to the start of the Job Open scenario
- Else, If the user selects "Open job in current Editor"
- The old/current (clean) job in the Editor is closed
- The new job is opened in the current Editor
- Else, if the user selects "Open job in a new Editor frame"
- The system invokes the "Open Job in New Editor" sub use case
- The system records a note that this user opened the job at this date/time
- If the user has Edit permission on the Job Information, and the user is in the Edit Job Information module, the system will maintain information to know that this user has this module locked
- A new job is opened in the current ACME Editor or in a new ACME Editor frame
TODO - AL - MAY NEED TO RE-WORD THIS BELOW HERE
- The user is in the ACME Editor, and has a dirty job open in the Editor
- The user selects an option to open a job
- The system invokes the List Jobs use case to let the user select a job to open
- If the job is currently locked by another user
- The system prompts "The job is open by another user; Open Read-Only, or Cancel?"
- If the user select Cancel, the job-open process is stopped at this point
- Else, if the user selects "Open Read Only"
- Continue with the rest of this use case (but with the job in "read-only" mode)
- If the job is not currently locked by another user
- The system prompts the user - "Open job in current Editor? Open a new Editor frame? Cancel?"
- If the user selects "Cancel"
- The Job Open operation is stopped
- Else, If the user selects "Open job in current Editor"
- The system tells the user that "The current job has been modified; save, discard, or cancel?"
- If the user selects "Cancel"
- The Open Job operation is cancelled
- The user is returned to their previous job
- If the user selects "Discard current job"
- The system discards the changes to the current job
- The system opens the new desired job in the current Editor
- If the user selects "Save"
- The current job is saved
- The system opens the new desired job in the current frame
- The system creates an informational lock at the job level indicating that the job is now opened by this user
- The user begins working with the job ...
- Else, if the user selects "Open job in a new Editor frame"
- The system invokes the "Open Job in New Editor" sub use case
- The system records a note that this user opened the job at this date/time
- The system locks the job so that no other user can edit it at this time
- The job open in ACME before the "Job Open" use case may or may not be saved to the database
- A job is retrieved from the database and is opened in the current ACME Editor or in a new ACME Editor
- A job-level informational lock is obtained on the newly opened job
- The system creates a new Editor frame
- The system opens the desired job in that new frame
- The system displays the new frame in the foreground, in front of the previous ACME Editor frame
- Search/List ACME Jobs
- When a user selects a job to open, if that job is already open in a different ACME Editor frame, bring that job to the foreground
-
The system shall record a "last maintained by" user id field at the job level any time a user saves information in any module
- This will include the user id and and timestamp
- If security is not enabled, the user id of the Unknown User will be stored in the "last maintained by" field
-
The system shall record a "last maintained by" user id field at the module level any time a user saves information in a module
-
This will include the user id and and timestamp
-
If security is not enabled, the user id of the Unknown User will be stored in the "last maintained by" field
-
Recent file list
- The system will display a list of the user's most recently opened 10 jobs
- A job will be added to the list any time it is opened into the ACME Editor
- This list will appear under the Job menu, in a manner similar to the file history in Microsoft Word
- In the Job menu, the job list will only show the job short description
- This list will be stored on the user's computer, in a data file under the user's home directory
- Jobs will appear once and only once in the list
- i.e., if the job has been opened three consecutive times, it should only appear once in the list
- The job list cannot be modified by the user
- Note: This job list may get out of sync with jobs that are actually in the database, and this must be accounted for
- This requirement is not documented in the scenarios above
- The behavior when a job in this list is accessed should be the same as the "Open Job Scenario"
- If the user has a job open on one PC, then moves to another PC, they may have the Job Information module locked from the first PC. How is this handled on the second PC?
-
Per our discussion of 2004-01-27, this will be handled in "the most simple" manner (TBD)
|
|