Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Stefano Savarino on September 13, 2022, 09:23:14 pm

Title: Dynamic Simulation with Execution Analyzer Script
Post by: Stefano Savarino on September 13, 2022, 09:23:14 pm
Hi everyone!
I'm trying to execute an activity model with several decision nodes.
My idea is to use the Execution Analyzer Script (EAS from now on) to set some global variables that will then be used in the simulation.
But I cannot seem to make it work. It has worked a couple of times, but now it does not work anymore and I cannot understand why.
I have created a much simpler test diagram, to understand the mechanism behind the EAS.
(https://i.postimg.cc/TprP8h4S/test-diag.png)

Then I have written the instruction in the EAS, which is connected to Activity1 as the Entry Point:
(https://i.postimg.cc/RNr0bwXK/exec-setting.png)

The problem I have is that when I run the simulation, it hangs on the decision node, and when I look at the variables in the Local tab, there is no sim.x defined:
(https://i.postimg.cc/py5TZsYP/exec-paused.png)

What am I doing wrong?
This is the first time I'm trying to simulate a model, so I'm definitely missing some piece of the puzzle...  ???

Thank you!

/Stefano