Expand description
State machine API for scenario state machines State machine API handlers
Provides REST endpoints for managing scenario state machines, including CRUD operations, execution, and import/export functionality.
Structs§
- Create
Instance Request - Request to create a state instance
- Import
Export Response - Response for import/export operations
- Next
States Response - Response for next states query
- State
Instance List Response - Response for listing state instances
- State
Instance Response - Response for state instance operations
- State
Machine Info - Information about a state machine
- State
Machine List Response - Response for listing state machines
- State
Machine Request - Request to create or update a state machine
- State
Machine Response - Response for state machine operations
- Transition
Request - Request to execute a state transition
Functions§
- create_
instance - Create a new state instance
- create_
state_ machine - Create or update a state machine
- create_
state_ machine_ routes - Create the state machine API router
- delete_
state_ machine - Delete a state machine
- execute_
transition - Execute a state transition
- export_
state_ machines - Export state machines as JSON
- get_
current_ state - Get current state of a resource
- get_
instance - Get a state instance by resource ID
- get_
next_ states - Get next possible states for a resource
- get_
state_ machine - Get a state machine by resource type
- import_
state_ machines - Import state machines from JSON
- list_
instances - List all state instances
- list_
state_ machines - List all state machines