Module state_machine_api

Module state_machine_api 

Source
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§

CreateInstanceRequest
Request to create a state instance
ImportExportResponse
Response for import/export operations
NextStatesResponse
Response for next states query
StateInstanceListResponse
Response for listing state instances
StateInstanceResponse
Response for state instance operations
StateMachineInfo
Information about a state machine
StateMachineListResponse
Response for listing state machines
StateMachineRequest
Request to create or update a state machine
StateMachineResponse
Response for state machine operations
TransitionRequest
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