From 87afc9d6840703c7f936fbe007493da47bc2cd83 Mon Sep 17 00:00:00 2001 From: Moqui Industrial <729502+moqui-industrial@users.noreply.github.com> Date: Thu, 14 May 2026 11:16:26 +0200 Subject: [PATCH] Extend StatusFlow for hierarchical FSM; add physics and engineering UoMs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit StatusFlow gains parentStatusFlowId (recursive FK) enabling nested / hierarchical state machines (HSM). StatusFlowTransition gains toStatusFlowId PK field for cross-flow transitions. New StatusFlowStack entity (create-only, cache="never") tracks the FSM execution stack per entity/pk pair. NOTE: StatusFlowTransition PK change requires DB migration for existing deployments with data in STATUS_FLOW_TRANSITION (low risk — configuration data reloaded on startup). UnitData.xml additions: Acceleration, Jerk, Snap, Angle, Angular Velocity/Acceleration, Volumetric and Mass Flow, Sound Level, Electrical (charge, capacitance, inductance), Viscosity, Force, Torque — covering common industrial and IoT measurement types. --- framework/data/UnitData.xml | 56 +++++++++++++++++++++++++++++- framework/entity/BasicEntities.xml | 50 +++++++++++++++++++++++--- 2 files changed, 101 insertions(+), 5 deletions(-) diff --git a/framework/data/UnitData.xml b/framework/data/UnitData.xml index 6bd05a501..df49023b1 100644 --- a/framework/data/UnitData.xml +++ b/framework/data/UnitData.xml @@ -75,6 +75,8 @@ along with this software (see the LICENSE.md file). If not, see + + @@ -87,6 +89,7 @@ along with this software (see the LICENSE.md file). If not, see + @@ -184,6 +187,7 @@ along with this software (see the LICENSE.md file). If not, see + @@ -220,6 +224,27 @@ along with this software (see the LICENSE.md file). If not, see + + + + + + + + + + + + + + + + + + + + + @@ -300,9 +325,14 @@ along with this software (see the LICENSE.md file). If not, see + + + + + @@ -361,6 +391,11 @@ along with this software (see the LICENSE.md file). If not, see + + + + + @@ -424,6 +459,9 @@ along with this software (see the LICENSE.md file). If not, see + + + @@ -432,16 +470,32 @@ along with this software (see the LICENSE.md file). If not, see + + + - + + + + + + + + + + + + + + diff --git a/framework/entity/BasicEntities.xml b/framework/entity/BasicEntities.xml index d71b77fc5..7d27ae613 100644 --- a/framework/entity/BasicEntities.xml +++ b/framework/entity/BasicEntities.xml @@ -329,9 +329,18 @@ along with this software (see the LICENSE.md file). If not, see - Optional. If specified uses status items with this type. + + Optional. If specified uses status items with this type. + + The parent status flow from which this status flow derives. + + + + + + @@ -346,14 +355,17 @@ along with this software (see the LICENSE.md file). If not, see + Not currently supported, may be removed, issue with what is the context for the expression - - - + + + + + No FK in order to allow arbitrary permissions (ie not pre-configured). @@ -383,6 +395,24 @@ along with this software (see the LICENSE.md file). If not, see + + + + + + + + + + + + + + + + + + @@ -407,15 +437,27 @@ along with this software (see the LICENSE.md file). If not, see + + + + + + + + + + + +