Skip to content

Instantly share code, notes, and snippets.

@DevanB
Last active August 31, 2019 12:50
Show Gist options
  • Save DevanB/8e6acdd096065f01cc73fd1f50f48b4d to your computer and use it in GitHub Desktop.
Save DevanB/8e6acdd096065f01cc73fd1f50f48b4d to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// - XState (all XState exports)
const g2iProcessMachine = Machine({
id: 'process',
initial: 'applicant',
states: {
applicant: {
on: {
SCREEN: 'screen',
CHALLENGE: 'codeChallenge',
}
},
screen: {
on: {
CHALLENGE: 'codeChallenge'
}
},
codeChallenge: {
on: {
INTERVIEW: 'technicalInterview'
}
},
technicalInterview: {
on: {
FINAL_REVIEW: 'finalReview'
}
},
finalReview: {
on: {
ACCEPT: 'onboarding',
DENY: 'waitlist'
}
},
onboarding: {
type: 'final'
},
waitlist: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment