Created
September 30, 2020 07:18
-
-
Save svagi/f0c5a6600a8019c62b77b17c9f7a1d28 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains 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
const routerMachine = Machine({ | |
id: "routerMachine", | |
initial: "topics", | |
states: { | |
topics: { | |
on: { | |
next: "dashboard", | |
}, | |
}, | |
dashboard: { | |
id: "dashboard", | |
on: { | |
continue: "dataQuality", | |
manageTopics: "topics", | |
editPipeline: "pipelines", | |
}, | |
}, | |
pipelines: { | |
initial: "mapping", | |
states: { | |
mapping: { | |
on: { | |
close: "#dashboard", | |
back: "#dashboard", | |
next: "filters", | |
}, | |
}, | |
filters: { | |
on: { | |
close: "#dashboard", | |
back: "mapping", | |
next: "schedule", | |
}, | |
}, | |
schedule: { | |
on: { | |
close: "#dashboard", | |
back: "filters", | |
next: "review", | |
}, | |
}, | |
review: { | |
on: { | |
close: "#dashboard", | |
back: "schedule", | |
next: "#dashboard", | |
}, | |
}, | |
}, | |
}, | |
dataQuality: { | |
on: { | |
run: "dataQuality", | |
continue: "installation", | |
back: "dashboard", | |
}, | |
}, | |
installation: { | |
on: { | |
install: "installation", | |
backToDataQuality: "dataQuality", | |
backToDashboard: "dashboard", | |
}, | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment