Unsaved
Ready
Loading Monaco Editor...
Preview
Styling
State Diagram
All Business Process templates

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 screen

    The 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 offer

    Negotiation returns to OfferStage with Revised offer. That loop is the counter cycle.

  • BackgroundCheck --> Rescinded : Failed check

    A 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 declines

Split 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 bar

Diagram type

State Diagram

Tags

hiringHRrecruitmentpipelineonboarding
Open in Editor

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 templates