Magic Model Analyst uses Java Scripting API to evaluate scripting languages. It is a scripting language-independent framework that uses script engines from Java code.
Magic Model Analyst supports the following scripting languages
- ECMLScript/JavaScript Nashorn (deprecated)
- Beanshell
- Groovy
- Python
Predefined variables in an Action script represent a set of variables defined by the script engine before a script evaluation is executed. You can refer to these predefined variables from any action script API.
Variable | Description |
---|---|
A context or runtime object of current script evaluation. For a Constraint Block, it is the runtime object of the owner of the Block and not of the Constraint Block itself. | |
An owner element of the script. | |
$performs$ or _performs_ | Checking an active Activity of the context being executed. |
The last signal Instance in an Event pool of a specified object. | |
An active State of a context or a runtime object of a current script evaluation. | |
A token value of an active model element. | |
self | Equivalent to $context$ or _context_. |
The specified property value of the last signal. |