Employee Hiring Pipeline — Mermaid State Diagram
State diagram showing the hiring pipeline stages from application through interviews, offer, and onboarding.
What this diagram shows
This Mermaid state diagram is a candidate moving through hiring. Applied leads to screening. Screening rejects or books a phone screen. The phone screen rejects or advances to a technical interview. The technical interview rejects or advances to an onsite composite state that contains a coding challenge, a system-design interview, and a behavioral interview. Onsite either rejects or opens an offer. The offer can loop through negotiation, then be accepted or declined. Acceptance runs a background check, which starts onboarding or rescinds the offer.
Use it when a recruiting SOP has too many informal stages and you need one diagram that shows every exit. Rejected, Declined, and Rescinded are different terminal states. Mixing them into a single Closed loses the reason. The onsite block is a composite state: the three interviews are inside it, and the transitions out of Onsite happen only when that inner flow finishes.
The start state is Applied. Onboarding, Rejected, Declined, and Rescinded all reach the end state. There is no withdrawn-by-candidate path except Declined, which is only reachable from the offer.
Mermaid syntax in this template
stateDiagram-v2 supports composite states with a state block. Transitions are labeled with the reason. [*] is the start and the end.
Screening --> PhoneScreen : Passes phone screenThe label is the exit condition. Write it as the reason, not as the next state name.
state OnsiteInterview { ... }A composite state. The inner [*] is the start of the onsite, not the start of the whole pipeline.
OfferStage --> Negotiation : Counter offerNegotiation returns to OfferStage with Revised offer. That loop is the counter cycle.
BackgroundCheck --> Rescinded : Failed checkA terminal state distinct from Rejected, which is used before an offer exists.
Variations and ways to customize it
Let a candidate withdraw early
Declined is only reachable from the offer. Add a Withdraw transition from PhoneScreen and TechnicalInterview to a Withdrawn end state if people drop out earlier.
PhoneScreen --> Withdrawn : Candidate withdraws
Withdrawn --> [*]Add a hiring-manager screen
Insert it between the phone screen and the technical interview. Keep Rejected as the shared no, so you do not invent a new terminal per stage.
PhoneScreen --> HiringManager : Passes phone screen
HiringManager --> TechnicalInterview : Manager approves
HiringManager --> Rejected : Manager declinesSplit the onsite interviews
The composite state hides failure between coding and system design. Give each inner state an exit to Rejected if a candidate can be cut midway.
CodingChallenge --> Rejected : Below bar
SystemDesign --> Rejected : Below barDiagram type
State DiagramTags
Frequently asked questions
What are the terminal states in this hiring diagram?
Rejected (failed an interview or screen), Declined (candidate turned down the offer), and Rescinded (failed the background check). Onboarding is the successful end. All four connect to the final [*].
What happens inside the onsite state?
A composite state runs coding, then system design, then behavioral. The transitions Recommended hire and Not recommended leave the composite only after that inner start-to-end flow. Mid-onsite rejection is not drawn.
How is a counter-offer shown?
OfferStage goes to Negotiation on Counter offer, and Negotiation returns to OfferStage on Revised offer. Accept and decline leave OfferStage, not Negotiation.
Where does a candidate withdraw before the offer?
They do not, in this template. Declined is only from OfferStage. Add a Withdrawn state from the earlier interviews if that happens in your process.
Related templates and guides
All Business Process templatesSupport Ticket Workflow
State diagram for a customer support ticket lifecycle from creation through triage, resolution, and closure.
Customer Onboarding Journey
User journey map showing the customer onboarding experience from signup through activation and first value.
Decision Tree Logic
Flowchart showing a branching decision tree for customer routing, support triage, or recommendation logic.
Mermaid state diagram syntax
Composite states and labeled transitions used for the onsite loop and the offer.
Getting started with Mermaid
When a state diagram is a better hiring picture than a flowchart.