📄️ Setting up a State Machine
This guide will walk you through the setup process for creating and managing state machines using the StateNet library. We’ll cover:
📄️ Instantiating machines
Once you have your machine blueprint (learn how to initializate it) you can create a usable instance of the machine. Each instance will be independent, so you can have more than one instance active at the same time.
📄️ State transitions
In order to define relations between states you need to create transitions. In a nutshell, a transition specifies a possible state change from an origin state to a target state when a specific action is triggered. As many transitions as needed can be defined.
📄️ Triggering actions
Once you have a machine instance you can start triggering actions.
📄️ Working with the context
Each machine allows you to mutate a value when events happen. For example, you can count how many times a state has been reached.