Skip to content

Instantly share code, notes, and snippets.

@dobesv
Last active September 28, 2021 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dobesv/d059e6620a4d7f8139781d1e30733804 to your computer and use it in GitHub Desktop.
Save dobesv/d059e6620a4d7f8139781d1e30733804 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 fetchMachine = Machine({
id: 'Task',
initial: 'NEW',
context: {
retries: 0
},
states: {
"NEW": {
on: {
"Needs Requirements?": "REQUIREMENTS GATHERING",
"Ready for Design?": "DESIGN TODO",
"Ready for Estimation?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"REQUIREMENTS GATHERING": {
on: {
"Ready for Design?": "DESIGN TODO",
"Ready for Estimation?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"DESIGN TODO": {
on: {
"Design Work Starting": "DESIGN DOING",
"Ready for Estimation?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"DESIGN DOING": {
on: {
"Ready for Estimation?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"ESTIMATION TODO": {
on: {
"Ready for Estimation?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"DEV TODO": {
on: {
"PR Opened?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"DEV DOING": {
on: {
"PR Opened?": "ESTIMATION TODO",
"Rejected?": "CLOSED"
}
},
"DEV PR OPEN": {
},
"QA TODO": {
},
"DOCS TODO": {
},
"DOCS DOING": {
},
"ROLLOUT TODO": {
},
"EXPERIMENTATION": {
},
"POST-EXPERIMENTATION": {
},
"CLOSED": {
type:'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment