Dear Jan,
new week, new script... I'm currently evaluating the possibilities the JavaScript feature gives me to set an event's probability. I'm able to set the probability for example based on the event's name "E194", but I fail to traverse the model:

How can I access the parent?
Actually I want to access the other event of the AND gate and then use mediniGetOpposites() to first "navigate" to the system model and then continue to access the according DC worksheet (FMEDA) failure mode entry and extract the applied diagnostic coverage "spfCoverage".
While experimenting I noticed that the expression seems to be evaluated twice. I renamed the description from "1234" to "bla" in the diagram and then the output "Events name: bla" got displayed twice. I'm on 2019 R1.1.
Best regards
Peter