Interface IScriptEngineService
public interface IScriptEngineService
- Since:
- 3.22.1
For information about the scripting engines, see "Polarion Scripting Guide & Examples" in the Polarion SDK (also available on Support Center).
Language version for engines created using
engine()
andpolarionScriptingEngine(String)
can be found by calling (ScriptEngine.getFactory()
andScriptEngineFactory.getLanguageVersion()
. 100% backward compatibility cannot be assured.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionengine()
Returns builder for script engine.Returns list of supported scripting engine names.polarionScriptingEngine
(String projectId) Returns a builder for the Polarion Scripting engine.
-
Field Details
-
GROOVY_ENGINE_NAME
This is a constant for the Groovy engine. The script filename extension for Groovy is "groovy".- See Also:
-
JS_ENGINE_NAME
This is a constant for the JavaScript engine. The script filename extension for JavaScript is "js".- See Also:
-
-
Method Details
-
getEngineNames
Returns list of supported scripting engine names. For available values see*_ENGINE_NAME
constants in this class. -
engine
Returns builder for script engine. -
polarionScriptingEngine
Returns a builder for the Polarion Scripting engine. The engine is only relevant to the project for which it was created.- Parameters:
projectId
- Project ID where the engine is meant to be used. When null, the engine can only be used for global scripts i.e. default repository- Since:
- 3.24.10
-