Overview

Script integration in Server means that you can use Script on the server side of your Server application to access your object model and implement the business logic of your application. Script is the Views implementation of the commonly used scripting language JavaScriptâ„¢. See the online Script Reference Manual (which comes as part of the Views online documentation) for more information about the language.

Various Script proxies have been defined to enable you to use script functions to access the model defined in the server model interpreter, as well as the most commonly used Server API.

Developing Script scripts can be useful to provide an implementation of methods that have been declared through the dynamic modeling capabilities of Server.

You can use Script to access either a static model or a dynamic model, provided that you have declared the element you want to access to the server model interpreter, using macros, the XMI parser, or the IlsDynModelInterpreter API.

Important!

As the Server API accessible from scripts is limited, and as the execution of scripts would be far less efficient than the equivalent C++ implementation, we recommend that you use scripts only for prototyping or for applications where performance is not critical.