Job object
Job has fields:
- Config
- Slot
- Selected classes
- Name
- List of tasks
- Status
- Failed methods
Job template has fields:
Use cases
Create/start job
Main:
- select config
- select slot
- select classes
- specify name
Conditions:
- unique name
- slot exists
- slot checkout/recheckout/update task is successfully over
- config exists
Interface:
When user creates job he or she may choose only one template. Some classes would be selected. User can add or delete selected classes. User can click on checkbox save template and enter the name of new template. After that user will click button start job and he would be redirected to web-page with list of jobs. New job would be started.
Stop job
Conditions:
1) job exists
2) job is running
Interface:
On web-page with list of jobs user can click button stop job. After that button will have a new title restart job.
Restart job
Conditions:
1) job exists
2) job is stopped
Interface:
On web-page with list of jobs user can click button restart job. After that user would be redirected to web-page which is used in use-case create/start job.
Delete job
Conditions:
1) job exist
2) job is not running
Interface:
On web-page with list of jobs user can select several jobs using checkboxes and click button delete job. Selected jobs would be deleted.
Use template
Conditions:
1) Template exists
2) Template is specified
Interface:
On web page where user create job there is a list with templates. First position in this list is <None> and others are already existing templates. User can select only one template.
Save template
Main:
1) specify classes
2) specify name
Conditions:
1) set of selected classes is not empty
2) unique name
Interface:
User clicks checkbox save template. A special field became available. User enters a name for template.
Delete template
Conditions:
1) template exist
Interface:
Make special web-page with list of templates where user can select several templates using checkboxes and click button delete template. Selected templates would be deleted.