Skip to content

State machine DSL improvements.

Latest

Choose a tag to compare

@Synesso Synesso released this 27 Aug 04:43
· 19 commits to main since this release
v0.11.1
249e47a

Added

  • Added StateMachine::advance method to automatically progress to the next state using a state selector,
    enabling dynamic state transitions without explicitly specifying the target state.
  • Exposed the state values $to and $from in the inline effect syntax. e.g.
    A becomes { 
      B via { it.copy(message = "from $from to $to" ) } 
    }