ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
fsm_state Struct Referencefinal

A state within a finite state machine. More...

#include <fsm_state.hpp>

Collaboration diagram for fsm_state:
Collaboration graph

Public Attributes

int version = 0
 Version number for optimistic locking and change tracking.
 
utility::uuid::tenant_id tenant_id = utility::uuid::tenant_id::system()
 Tenant identifier for multi-tenancy isolation.
 
boost::uuids::uuid id
 UUID uniquely identifying this state.
 
boost::uuids::uuid machine_id
 UUID of the FSM machine this state belongs to.
 
std::string name
 Human-readable state name (e.g. "new", "live", "expired").
 
bool is_initial = false
 Whether this is the initial state of the machine.
 
bool is_terminal = false
 Whether this is a terminal state (no outgoing transitions).
 
std::string modified_by
 Username of the person who last modified this record.
 
std::string performed_by
 Username of the account that performed this action.
 
std::string change_reason_code
 Code identifying the reason for the change.
 
std::string change_commentary
 Free-text commentary explaining the change.
 
std::chrono::system_clock::time_point recorded_at
 Timestamp when this version of the record was recorded.
 

Detailed Description

A state within a finite state machine.

States belong to exactly one machine and may be designated as initial (entry point) or terminal (no outgoing transitions).

Member Data Documentation

◆ name

std::string name

Human-readable state name (e.g. "new", "live", "expired").

Unique within a machine.