https://github.com/statewalker/statewalker-fsm-core
https://github.com/statewalker/statewalker-fsm-core
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/statewalker/statewalker-fsm-core
- Owner: statewalker
- License: mit
- Created: 2022-09-22T05:23:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T12:14:59.000Z (about 2 years ago)
- Last Synced: 2025-09-24T03:27:38.730Z (9 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @statewalker/fsm-core: Core Library
This module contains functions core utility methods injected in FSM process states.
These methods allow to:
* set/get/use data in a store associated with the process
* declare triggers generating transition events when data changes in the store
* declare timers associated with states
* declare/use services
The timelife of services, triggers, timers and data subscriptions are bound to to the state initialization/destruction cycles.
It means that a service, trigger or a data subscription became active when the corresponding state is initialized and they are automatically deactivated when the FSM leaves and deactivates the state.