Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified FsmTD.tox
Binary file not shown.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ Requires a single column: `state_name`. List all possible states here.

### Transitions Table
Requires four columns: `source`, `event`, `target`, and `timeout`.
* `source`: The state you are leaving.
* `source`: The state you are leaving. Supports wildcard `*` (allows transitioning from any state to the target state). Wildcard transitions have the highest priority.
* `event`: The trigger required to leave.
* `target`: The destination state.
* `timeout`: (Optional) Float value in seconds. The FSM will automatically trigger the transition after this time elapses.

## ⚠️ State Validation & Error Handling
To help you build and debug your FSM, the component validates your configuration tables on load:
* **Missing Source State**: If a source state in the transitions table does not exist in the states table, a **warning** is raised. (Note: The wildcard `*` is a valid source state).
* **Missing Target State**: If a target state in the transitions table does not exist in the states table, an **error** is raised to prevent entering undefined states.

## 🤝 Contributing
Pull requests are welcome! If you build something cool with this, let me know and remember to mention us.
Feel free to open issues for bug reports, feature requests, or just to say hi!
Expand Down