Skip to content

Instantly share code, notes, and snippets.

@hlkn
Last active July 15, 2023 15:56
Show Gist options
  • Save hlkn/57756038e6698f2bbd1551e2912843b1 to your computer and use it in GitHub Desktop.
Save hlkn/57756038e6698f2bbd1551e2912843b1 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const DbHealthLifeCycle = Machine ({
id: 'VipFlow',
initial: 'start',
states: {
start: {
on: {
pass1: 'validate'
}
},
validate: {
on: {
pass2: 'gather_user_info'
}
},
gather_user_info: {
on: {
pass3: 'data_maintain'
}
},
data_maintain: {
on: {
pass4: 'transfer'
}
},
transfer: {
on: {
pass5: 'end'
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment