Statecharts[1] predate UML, and became part of UML[2].
From the time of their invention to the present, people have devised systems for serializing (i.e. as data structures and code) statecharts and translating them to (or interpreting them as) executable programs[3].
While they may not be all the rage and take some discipline to learn and use effectively (what software tool/concept doesn't?), they can be a valuable tool for building reactive systems:
A typical reactive system exhibits the following distinctive
characteristics:
It continuously interacts with its environment, using inputs and
outputs that are either continuous in time or discrete. The inputs
and outputs are often asynchronous, meaning that they may arrive or
change values unpredictably at any point in time. This should be
contrasted with transformational systems, in which the timing of the
inputs and outputs is much more predictable. A transformational
system repeatedly waits for all its inputs to arrive, carries out
some processing, and outputs the results when the processing is done.
It must be able to respond to interrupts, that is, high-priority
events, even when it is busy doing something else.
Its operation and reaction to inputs often reflects stringent time
requirements.
It has many possible operational scenarios, depending on the current
mode of operation and the current values of its data as well as its
past behavior.
It is very often based on interacting processes that operate in
parallel.
Examples of reactive systems include on-line interactive systems,
such as automatic teller machines (ATMs) and flight reservation
systems; computer-embedded systems, such as avionics, automotive, and
telecommunication systems; and control systems, such as chemical and
manufacturing systems.
— Harel and Politi,
Modeling Reactive Systems with Statecharts: The STATEMATE Approach (1998) [4]
[1] https://www.inf.ed.ac.uk/teaching/courses/seoc/2005_2006/res...
[2] https://en.wikipedia.org/wiki/UML_state_machine
[3] https://userweb.cs.txstate.edu/~rp31/papersSP/stateMate.pdf
[&] https://www.w3.org/TR/scxml/
[&] https://github.com/jbeard4/SCION
[&] https://github.com/statelyai/xstate
[&] https://www.rtsys.informatik.uni-kiel.de/en/archive/kieler
[&] search the web and you'll find more
[4] https://www.wisdom.weizmann.ac.il/~harel/reactive_systems.ht...