File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ defmodule Statifier.Interpreter do
8484 defp initialize_state_chart ( optimized_document , warnings , opts ) do
8585 initial_config = get_initial_configuration ( optimized_document )
8686
87+ initial_leaf_states =
88+ initial_config
89+ |> Configuration . active_leaf_states ( )
90+ |> MapSet . to_list ( )
91+
8792 state_chart = StateChart . new ( optimized_document , initial_config )
8893
8994 # Initialize data model from datamodel_elements
@@ -95,7 +100,7 @@ defmodule Statifier.Interpreter do
95100 # Configure logging based on options or defaults
96101 |> LogManager . configure_from_options ( opts )
97102 # Execute onentry actions for initial leaf states and queue any raised events
98- |> ActionExecutor . execute_onentry_actions ( MapSet . to_list ( Configuration . active_leaf_states ( initial_config ) ) )
103+ |> ActionExecutor . execute_onentry_actions ( initial_leaf_states )
99104 # Execute microsteps (eventless transitions and internal events) after initialization
100105 |> execute_microsteps ( )
101106
@@ -113,7 +118,6 @@ defmodule Statifier.Interpreter do
113118 { :ok , state_chart }
114119 end
115120
116-
117121 @ doc """
118122 Send an event to the state chart and return the new state (macrostep execution).
119123
You can’t perform that action at this time.
0 commit comments