1
General Board / Run JScript/JavaScript in Post-Processing Script of Analyzer Script
« on: July 13, 2022, 07:43:07 pm »
Hi
Has anyone tried running a JScript or JavaScript in Pre-Processing and Post-Processing Script section in Interpreted Simulation of Analyzer Script.
AnalyzerScript>Simulation>Interpreted Simulation>Pre/Post-Processing Script.
here is the reference in the docs.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/model_simulation/set_up_simulation.html#:~:text=For%20example%2C%20if%20you%20have%20a%20script%20named%20%27MyScript%27%20in%20the%20Script%20Group%20%27MyGroup%27%2C%20type%20in%20the%20value%20%27MyGroup.MyScript%27.
I am unable to run the script. Everything runs, but there is no sign that script ran really.
Here are my steps:
1. Created Myscript JavaScript withSimulation.Output("HW.."); in MyGroup.
2. Check the box for evaluation with JavaScript.
3. Added MyGroup.Myscript in the respective section.
4. Ran the script by right-click>Simulation>AnalyzerScript><scriptname>
Output:
Error in Simulation Console that MyGroup is not defined.
Best,
Adeeb
Has anyone tried running a JScript or JavaScript in Pre-Processing and Post-Processing Script section in Interpreted Simulation of Analyzer Script.
AnalyzerScript>Simulation>Interpreted Simulation>Pre/Post-Processing Script.
here is the reference in the docs.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/model_simulation/set_up_simulation.html#:~:text=For%20example%2C%20if%20you%20have%20a%20script%20named%20%27MyScript%27%20in%20the%20Script%20Group%20%27MyGroup%27%2C%20type%20in%20the%20value%20%27MyGroup.MyScript%27.
I am unable to run the script. Everything runs, but there is no sign that script ran really.
Here are my steps:
1. Created Myscript JavaScript withSimulation.Output("HW.."); in MyGroup.
2. Check the box for evaluation with JavaScript.
3. Added MyGroup.Myscript in the respective section.
4. Ran the script by right-click>Simulation>AnalyzerScript><scriptname>
Output:
Error in Simulation Console that MyGroup is not defined.
Best,
Adeeb
