Software Engineering: Use Case and Activity Diagrams
VerifiedAdded on  2023/04/20
|12
|1114
|219
Practical Assignment
AI Summary
This assignment solution encompasses a comprehensive analysis of system design using UML diagrams. It begins with a cover page and table of contents, followed by detailed use case descriptions for 'Assign Contractor' and 'Post Job' functionalities within an employee and contract management sub-system. The solution includes preconditions, success, and failure end conditions for each use case. Activity diagrams visually represent the workflows for both use cases, clarifying the steps involved. Sequence diagrams illustrate the interactions between system components for assigning a contractor and posting a job. A screen design for assigning a contractor is provided, along with test cases to validate the system's functionality. The assignment concludes with a bibliography citing relevant UML diagram resources.

COVER PAGE
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Contents
Task 1..........................................................................................................................................................3
Task 2..........................................................................................................................................................3
Use case descriptions..................................................................................................................................3
Use case 1: Assign Contractor..................................................................................................................3
Use case 2: Post Job.................................................................................................................................5
Activity diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Assign contractor activity diagram..........................................................................................................7
Post Job Activity diagram.........................................................................................................................8
Sequence diagrams.....................................................................................................................................9
Assign contractor sequence diagram.......................................................................................................9
Post Job sequence diagram...................................................................................................................10
Assign contractor screen design................................................................................................................11
Test cases..................................................................................................................................................11
Bibliography...............................................................................................................................................12
Task 1..........................................................................................................................................................3
Task 2..........................................................................................................................................................3
Use case descriptions..................................................................................................................................3
Use case 1: Assign Contractor..................................................................................................................3
Use case 2: Post Job.................................................................................................................................5
Activity diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Assign contractor activity diagram..........................................................................................................7
Post Job Activity diagram.........................................................................................................................8
Sequence diagrams.....................................................................................................................................9
Assign contractor sequence diagram.......................................................................................................9
Post Job sequence diagram...................................................................................................................10
Assign contractor screen design................................................................................................................11
Test cases..................................................................................................................................................11
Bibliography...............................................................................................................................................12

Task 1
https://projects.invisionapp.com/freehand/document/ChgXEPCgj
Task 2
Use case descriptions
Use case 1: Assign Contractor
USE CASE # Assign contractor
Goal in Context Assigning a contractor to a new job ad that has not yet been
assigned a contractor to work on it
Scope & Level The system under consideration is the employee and contract
management sub-system which will be used to assign job ads
to contractors that are available and fit the requirements of
the job.
Preconditions The user who is the contract manager should be logged into
the system and there should be a job that is available and has
not yet been assigned a contractor and a contractor matching
the requirements of the job description should exist in the
database.
Success End
Condition
Upon successful completion of job contractor assignment,
the status of the job should be updated to reflect that the job
has been allocated to a contractor and the status of the
contractor should change to reflect that the contractor has
been allocated to the job for the period of time that the job is
supposed to take
Failed End
Condition
If the assign contractor goal is abandoned the job ad should
remain available for assignment to other contractors and the
contractor should be available to take other job ads that meet
his or her requirements
Primary,
Secondary
Actors
Contract manager
Employee
Trigger Assign contractor menu is pressed
https://projects.invisionapp.com/freehand/document/ChgXEPCgj
Task 2
Use case descriptions
Use case 1: Assign Contractor
USE CASE # Assign contractor
Goal in Context Assigning a contractor to a new job ad that has not yet been
assigned a contractor to work on it
Scope & Level The system under consideration is the employee and contract
management sub-system which will be used to assign job ads
to contractors that are available and fit the requirements of
the job.
Preconditions The user who is the contract manager should be logged into
the system and there should be a job that is available and has
not yet been assigned a contractor and a contractor matching
the requirements of the job description should exist in the
database.
Success End
Condition
Upon successful completion of job contractor assignment,
the status of the job should be updated to reflect that the job
has been allocated to a contractor and the status of the
contractor should change to reflect that the contractor has
been allocated to the job for the period of time that the job is
supposed to take
Failed End
Condition
If the assign contractor goal is abandoned the job ad should
remain available for assignment to other contractors and the
contractor should be available to take other job ads that meet
his or her requirements
Primary,
Secondary
Actors
Contract manager
Employee
Trigger Assign contractor menu is pressed
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

DESCRIPTION Step Action
1 User clicks assign contractor menu
2 System fetches all jobs that are available for
contractor assignment and displays the assign
contractor page with all available jobs
3 User uses a criteria to filter jobs ( for example mining
jobs)
4 The system fetches all the jobs matching the search
criteria entered by the user
5 User selects a job from the list of available jobs
6 The system fetches a list of all available contractors that
match the job description and orders them in order of
the highest match to the job description to the lowest
match of the job description
7 User selects the highest match who is the first
contractor and submits the job assignment
8 System generates a job approval letter for the
contractor and another job approval letter for the
employee and then sends both letters to the respective
parties.
9 System displays a success message to the user
EXTENSIONS STEP
4
The system fetches all the jobs matching the search
criteria entered by the user
4a
4b
System does not find any job matching the search
criteria
System displays no results found message
1 User clicks assign contractor menu
2 System fetches all jobs that are available for
contractor assignment and displays the assign
contractor page with all available jobs
3 User uses a criteria to filter jobs ( for example mining
jobs)
4 The system fetches all the jobs matching the search
criteria entered by the user
5 User selects a job from the list of available jobs
6 The system fetches a list of all available contractors that
match the job description and orders them in order of
the highest match to the job description to the lowest
match of the job description
7 User selects the highest match who is the first
contractor and submits the job assignment
8 System generates a job approval letter for the
contractor and another job approval letter for the
employee and then sends both letters to the respective
parties.
9 System displays a success message to the user
EXTENSIONS STEP
4
The system fetches all the jobs matching the search
criteria entered by the user
4a
4b
System does not find any job matching the search
criteria
System displays no results found message
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Use case 2: Post Job
USE CASE # Post Job
Goal in Context An employee wants to post a new contract by accessing the
employee and contract management sub system. The system
validates the job details entered by the employee and posts
the ad which is available to contractors that match the
requirements and are available within the stipulated timeline
of the job
Scope & Level The system under consideration is the employee and contract
management sub system which can be accessed remotely by
any registered employee to post new contracts
Preconditions The employee must access the system with a secure
connection and must have an account in the system for them
to post a contract job.
Success End
Condition
Upon successful completion of the post job use case a new
job is saved and is available for contract assignment to
contractors that fit the requirements of the job,
Failed End
Condition
If the post job goal is abandoned, no new job is added in the
database and records in the database remain unchanged.
Primary,
Secondary
Actors
Employee
Contract manager
Trigger Post Job menu is pressed
DESCRIPTION Step Action
1 User clicks post job page
2 System displays the post job page
3 User selects category that fits the job that he or she
wants to post
4 System updates the job form as per the details of the
specific category selected by the user
USE CASE # Post Job
Goal in Context An employee wants to post a new contract by accessing the
employee and contract management sub system. The system
validates the job details entered by the employee and posts
the ad which is available to contractors that match the
requirements and are available within the stipulated timeline
of the job
Scope & Level The system under consideration is the employee and contract
management sub system which can be accessed remotely by
any registered employee to post new contracts
Preconditions The employee must access the system with a secure
connection and must have an account in the system for them
to post a contract job.
Success End
Condition
Upon successful completion of the post job use case a new
job is saved and is available for contract assignment to
contractors that fit the requirements of the job,
Failed End
Condition
If the post job goal is abandoned, no new job is added in the
database and records in the database remain unchanged.
Primary,
Secondary
Actors
Employee
Contract manager
Trigger Post Job menu is pressed
DESCRIPTION Step Action
1 User clicks post job page
2 System displays the post job page
3 User selects category that fits the job that he or she
wants to post
4 System updates the job form as per the details of the
specific category selected by the user

5 User enters all details and saves
6 The system verifies the data entered by the user and
saves the job
7 System generates an invoice and displays it to the user
8 User prints the invoice to end the process
EXTENSIONS STEP
6
The system verifies the data entered by the user and
saves the job
4a
4b
The system finds errors in the data
System displays the errors and takes the user back to
step 5
6 The system verifies the data entered by the user and
saves the job
7 System generates an invoice and displays it to the user
8 User prints the invoice to end the process
EXTENSIONS STEP
6
The system verifies the data entered by the user and
saves the job
4a
4b
The system finds errors in the data
System displays the errors and takes the user back to
step 5
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Activity diagram
Assign contractor activity diagram
Assign contractor activity diagram
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Post Job Activity diagram

Sequence diagrams
Assign contractor sequence diagram
Assign contractor sequence diagram
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide

Post Job sequence diagram
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser

Assign contractor screen design
Test cases
N
o
Guideline Short Description Test Data Expected Output
1 RIGHT-BICEP Contract manager opens assign
contractor page
Mouse click on
assign contractor
link menu
System fetches
displays the
assign contract
page with all job
categories
2 RIGHT-BICEP Contract manager searches for an
available job using a specific
category
Mining category System retrieves
all jobs matching
the category
searched by the
user and displays
details of the job
3 RIGHT-BICEP User selects a job Job ID:J00334 The system
fetches all the
contractors that
are available and
match the job
description
4 RIGHT-BICEP User selects a contractor to
assign to the job and presses the
assign button
Contractor 1 System changes
the status of the
job to taken and
the status of the
contractor to not
available and
generates a
Test cases
N
o
Guideline Short Description Test Data Expected Output
1 RIGHT-BICEP Contract manager opens assign
contractor page
Mouse click on
assign contractor
link menu
System fetches
displays the
assign contract
page with all job
categories
2 RIGHT-BICEP Contract manager searches for an
available job using a specific
category
Mining category System retrieves
all jobs matching
the category
searched by the
user and displays
details of the job
3 RIGHT-BICEP User selects a job Job ID:J00334 The system
fetches all the
contractors that
are available and
match the job
description
4 RIGHT-BICEP User selects a contractor to
assign to the job and presses the
assign button
Contractor 1 System changes
the status of the
job to taken and
the status of the
contractor to not
available and
generates a

letter for the
employer and
another one for
the contractor
and sends the
letters to the
respective
parties
Bibliography
UML Diagram Types | Learn About All 14 Types of UML Diagrams. (2018). Retrieved from
https://creately.com/blog/diagrams/uml-diagram-types-examples/
What is Unified Modeling Language (UML)?. Retrieved from https://www.visual-
paradigm.com/guide/uml-unified-modeling-language/what-is-uml/
employer and
another one for
the contractor
and sends the
letters to the
respective
parties
Bibliography
UML Diagram Types | Learn About All 14 Types of UML Diagrams. (2018). Retrieved from
https://creately.com/blog/diagrams/uml-diagram-types-examples/
What is Unified Modeling Language (UML)?. Retrieved from https://www.visual-
paradigm.com/guide/uml-unified-modeling-language/what-is-uml/
⊘ This is a preview!⊘
Do you want full access?
Subscribe today to unlock all pages.

Trusted by 1+ million students worldwide
1 out of 12
Related Documents
Your All-in-One AI-Powered Toolkit for Academic Success.
 +13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
Copyright © 2020–2025 A2Z Services. All Rights Reserved. Developed and managed by ZUCOL.





