Skip to content

Instantly share code, notes, and snippets.

@ferrata
Last active July 31, 2024 04:08
Show Gist options
  • Save ferrata/940ab2dd8a0cca6d7c3fa8e4a5e15d16 to your computer and use it in GitHub Desktop.
Save ferrata/940ab2dd8a0cca6d7c3fa8e4a5e15d16 to your computer and use it in GitHub Desktop.
stateDiagram-v2
  state "wake up" as wakeUp
  state "grab a brush" as grabBrush
  state "put a little makeup" as makeUp
  state "hide the scars" as hideScars
  state "fade away the shakeup" as fadeShakeup
  state "leave the keys upon the table" as leaveKeys
 
  [*] --> wakeUp
  wakeUp --> grabBrush
  grabBrush -->  makeUp
  makeUp --> hideScars
  hideScars --> fadeShakeup
  fadeShakeup --> leaveKeys: Why?

  state wantedTo <<choice>>
  leaveKeys --> wantedTo: create another?

  wantedTo --> fable: yes

  state fable {
  state "wake up" as wakeUp1
  state "grab a brush" as grabBrush1
  state "put a little makeup" as makeUp1
  state "hide the scars" as hideScars1
  state "fade away the shakeup" as fadeShakeup1
  state "leave the keys upon the table" as leaveKeys1
 
  [*] --> wakeUp1
  wakeUp1 --> grabBrush1
  grabBrush1 -->  makeUp1
  makeUp1 --> hideScars1
  hideScars1 --> fadeShakeup1
  fadeShakeup1 --> leaveKeys1: Why?
  leaveKeys1 --> [*]
  }
  
  state "commend spirit" as commendSpirit
  wantedTo --> commendSpirit: no

  fable --> commendSpirit
  commendSpirit --> [*]
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment