Explorar o código

Interpreter executes staticInitSequence now

Andreas Mülder %!s(int64=11) %!d(string=hai) anos
pai
achega
f55f33791f

+ 4 - 2
plugins/org.yakindu.sct.simulation.core.sexec/src/org/yakindu/sct/simulation/core/sexec/interpreter/DefaultExecutionFlowInterpreter.xtend

@@ -69,8 +69,10 @@ class DefaultExecutionFlowInterpreter implements IExecutionFlowInterpreter {
 		activeStateConfiguration = newArrayOfSize(flow.stateVector.size)
 		activeStateIndex = 0
 		historyStateConfiguration = newHashMap()
-		if (!executionContext.snapshot)
-			flow.initSequence.scheduleAndRun
+		if (!executionContext.snapshot){
+			flow.staticInitSequence.scheduleAndRun
+			flow.initSequence.scheduleAndRun
+		}
 	}
 
 	override enter() {