• Create a RootSupervisor for a Behavior.

    Behavior uses this internally for its Behavior.supervisor.

    BehaviorSupervisor derives operational schema from a "logical" schema. If the Behavior implementation has a static schema property this defines the logical schema. Otherwise the logical schema is Schema.empty.

    This function loads the logical schema and mutates as required. This includes addition of fields for any programmatic extensions of state. This allows schema-driven logic to process state fields added in pure JS.

    The RootSupervisor is then constructed from the mutated logical schema.

    Parameters

    Returns RootSupervisor

Index