Atomic state

Also known as Simple state

An atomic state is a state that has no substates. States that have substates are either compound states or parallel states.

Atomic states do not define “initial” states either.

Notation

Atomic states can use the same notation as described in state.

For atomic states that have no actions, and are otherwise empty, a very small, rounded rectangle can be used with only the name of the state inside.

SCXML

In SCXML, an atomic state is any state that has no state children:

<state id="my_atomic_state">
  <onentry>
    <script>do_the_thing()</script>
  </onentry>
</state>

XState

In XState, an atomic state has no states property and (optionally) a type: "atomic" property.

my_atomic_state: {
  type: "atomic",
  onEntry: "do_the_thing"
}