Last active
July 7, 2020 07:31
-
-
Save lucifiel0121/ad5c5fc9b0411dcd5b8afcef5a356304 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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions | |
// - XState (all XState exports) | |
const NEXTMachine = Machine({ | |
id: "簽核順序", | |
initial: "經紀", | |
context: { | |
retries: 0, | |
}, | |
states: { | |
經紀: { | |
on: { | |
NEXT: "組長", | |
}, | |
}, | |
組長: { | |
on: { | |
NEXT: "總監", | |
}, | |
}, | |
總監: { | |
on: { | |
NEXT: "帳務", | |
}, | |
}, | |
帳務: { | |
on: { | |
一般合約: "法務", | |
特殊合約: "台灣運營COO", | |
}, | |
}, | |
台灣運營COO: { | |
on: { | |
NEXT: "集團COO", | |
}, | |
}, | |
集團COO: { | |
on: { | |
NEXT: "法務", | |
}, | |
}, | |
法務: { | |
on: { | |
NEXT: "待主播簽名後生效", | |
}, | |
}, | |
待主播簽名後生效: { | |
on: { | |
簽名: "簽約生效", | |
簽名後法務作廢: "已作廢", | |
}, | |
}, | |
簽約生效: { | |
type: "final", | |
}, | |
已作廢: { | |
type: "final", | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment