Last active
January 23, 2020 02:33
-
-
Save johnnydecimal/e22371fb0c8da1521f5e2873076395cb 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
// Working version, i.e. not v1.2.0 | |
// Updated 2020-01-23 11:14 | |
// This is the plain-JS version for easy copy/pasting & linter | |
// formatting. Copy back to 22.14.md for publishing. | |
// https://xstate.js.org/viz/?gist=e22371fb0c8da1521f5e2873076395cb | |
const engineRoom = Machine({ | |
id: "application", | |
type: "parallel", | |
states: { | |
Application: { | |
initial: "Start", | |
states: { | |
Start: { | |
on: { | |
Start: "Application discovered [32․41]", | |
}, | |
}, | |
"Application discovered [32․41]": { | |
on: { | |
"No app owner": "ABRG determining owner [33․42]", | |
"To be retired": "Retire application [71․41]", | |
"Approved to proceed": "Approved to proceed [33․44]", | |
}, | |
}, | |
"ABRG determining owner [33․42]": { | |
on: { | |
"App owner found": "Application discovered [32․41]", | |
"To be retired": "Retire application [71․41]", | |
}, | |
}, | |
"Approved to proceed [33․44]": { | |
on: { | |
"Testing complete": "Testing & remediation complete [51․41]", | |
"Retire application": "Retire application [71․41]", | |
}, | |
}, | |
"Retire application [71․41]": { | |
on: { | |
"App retired": "Application retired [71․42]", | |
}, | |
}, | |
"Testing & remediation complete [51․41]": { | |
on: { | |
"Approved to proceed": "Approved to proceed [33․44]", | |
}, | |
}, | |
"Application retired [71․42]": { | |
type: "final", | |
}, | |
}, | |
}, | |
Job: { | |
initial: "Smoke-testing [55․41]", | |
states: { | |
"Smoke-testing [55․41]": { | |
on: { | |
"Tests passed": "TDV testing [56․42]", | |
"Tests failed": "Remediating [52․41]", | |
}, | |
}, | |
"TDV testing [56․42]": { | |
on: { | |
"TDV successful": "BDV testing [56․43]", | |
"TDV N/A": "BDV testing [56․43]", | |
"TDV failed": "Remediating [52․41]", | |
}, | |
}, | |
"BDV testing [56․43]": { | |
on: { | |
"BDV successful": "Recording test approvals [55․43]", | |
"BDV N/A": "Recording test approvals [55․43]", | |
"BDV failed": "Remediating [52․41]", | |
}, | |
}, | |
"Remediating [52․41]": { | |
on: { | |
"Remediation completed": "Smoke-testing [55․41]", | |
"SRA void": "Assessing security risk [43․41]", | |
"Retire application": "Retire application [71․41]", | |
}, | |
}, | |
"Assessing security risk [43․41]": { | |
on: { | |
"Risk acceptable": "Smoke-testing [55․41]", | |
"Risk unacceptable": "Retire application [71․41]", | |
}, | |
}, | |
"Recording test approvals [55․43]": { | |
on: { | |
"Approval recorded": "Deploying to production [61․42]", | |
}, | |
}, | |
"Deploying to production [61․42]": { | |
on: { | |
"Smoke-test": "Smoke-testing [55․41]", | |
"Deployed to prod": "Deployed to production [61․43]", | |
}, | |
}, | |
"Retire application [71․41]": { | |
type: "final", | |
}, | |
"Deployed to production [61․43]": { | |
type: "final", | |
}, | |
}, | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment