finite_machine
finite_machine copied to clipboard
Introduce names for FiniteMachine instances
Describe the change
This PR introduces the ability to specify an optional name for new FiniteMachine instances.
Why are we doing this?
Currently transition logs don't specify the FiniteMachine for which event transitions happen. This makes it hard to understand or post process the logs.
Benefits
It will now be possible to disambiguate event transitions that occur in the context of different FiniteMachine instances.
Drawbacks
None.
Requirements
- [X] Tests written & passing locally? (NOTE: No new tests were added but existing tests were suitably updated)
- [X] Code style checked?
- [X] Rebased with
master
branch? - [X] Documentation updated?
- [X] Changelog updated?