lesson

Make permitted transitions explicit

1 · Learn

A state machine represents named states and allowed transitions. An assignment might move from draft to submitted to reviewed. A transition can require conditions, such as valid content before submission.

Drawing states is not enough: define what happens to data and permissions during each transition. Reopening a reviewed item should follow an explicit rule rather than silently erasing its history.

DraftSubmittedReviewedTransition conditions
Key words and supplied examples.

2 · Worked example

A submit action from an empty draft can be rejected while keeping the draft intact. A successful transition records the submission time and version.

3 · Your turn

Why should changing a reviewed submission back to draft not silently erase the reviewed version?

Check your answer

The previous version is part of the record and may be needed to understand feedback and decisions.

4 · Apply your learning

Draw a state diagram and list one permitted and one forbidden transition with reasons.

Adult guidance and safety

Use an approved sandbox, invented data and test accounts. Do not probe other systems or expose credentials. Retain test evidence and accessibility checks; these teaching models are not a completed practical project or a specified GCSE qualification.

Practice this lesson

Lesson resources

Browse the available practice activities and worksheets for this lesson.

Open course resources
Exercise preview

Interactive activity

Year 11 Computing learning routine

H5P
Which routine will help you learn well in Year 11 Computing?

Practice activity. It does not change your saved quiz score.