Expand description
The null datamodel (W3C SCXML B.1) and the registry helpers that make it always available.
Structs§
- Null
Datamodel - The
nulldatamodel: no data, and onlyIn('id')conditions. Every other condition, value expression, assignment, script andforeachis an evaluation error. Inline content (of<content>) is not an expression and is passed through as a string. - Null
Registry - A registry with only the
nulldatamodel. - With
Null - Wraps a host registry so that
nullis always available.
Constants§
- NULL_
DATAMODEL - The name of the
nulldatamodel.
Functions§
- create_
datamodel - Create the datamodel a chart names (
nullwhen it names none) from the host’s registry, or fail withStartError::UnsupportedDatamodel.nullis available even when the registry does not list it. - create_
datamodel_ for - Create the datamodel for
chartfrom the host’s registry throughDatamodelRegistry::create_for, so a datamodel that checks charts statically gets the whole chart:StartError::ChartRefusedwhen it refuses the chart, and otherwise ascreate_datamodel(nullwhen the chart names none,nullalways available,StartError::UnsupportedDatamodelfor an unregistered name). - parse_
in_ predicate - Parse
In('id')orIn("id")(surrounding whitespace allowed) and returnid. - start_
with_ registry - Select the chart’s datamodel from the registry and start a session with it. Returns the outcome and the datamodel instance the session must keep using.