The Wayback Machine - http://web.archive.org/web/20200618062412/https://github.com/topics/fsm
Skip to content
#

fsm

Here are 316 public repositories matching this topic...

argoyb
argoyb commented Apr 15, 2019

Documentation says there is a listener @OnTransitionDecline, however I can't find anything on how to trigger transition decline.

To give some context use case I'm working on right now: running computation in another service. There are four states: SUBMITTED - submits item to another system - IN PROGRESS - checks the status of item in another system. If still in progress state is not chang

michaellenaghan
michaellenaghan commented Jan 6, 2020

The page has this snippet:

green: {
  onEntry: "startHttpRequest",
  onExit: "cancelHttpRequest",
  ...
}

followed shortly thereafter by this snippet:

function transition(event, data) {
  currentState = stateMachine.transition(currentState, event, data);
  field.classList.value = currentState.value;
  currentState.actions.forEach(item => window[item]());
}

T

Improve this page

Add a description, image, and links to the fsm topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the fsm topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.