Last active
September 28, 2021 00:31
-
-
Save dobesv/d059e6620a4d7f8139781d1e30733804 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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