Skip to content

Instantly share code, notes, and snippets.

@Platekun
Created January 19, 2020 17:02
Show Gist options
  • Save Platekun/d8c0541e02980d2b8eca3a704402e743 to your computer and use it in GitHub Desktop.
Save Platekun/d8c0541e02980d2b8eca3a704402e743 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 curviMachine = Machine({
id: 'Curvi',
initial: 'idle',
context: {
retries: 0
},
states: {
idle: {
on: {
HACER_PROCESO_1: 'Proceso 1'
}
},
'Proceso 1': {
initial: 'Sub Proceso 1',
states: {
'Sub Proceso 1': {
on: {
FIN_SUB_PROCESO_1: 'Sub Proceso 2'
}
},
'Sub Proceso 2': {
}
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment