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() and polarionScriptingEngine(String) can be found by calling (ScriptEngine.getFactory() and ScriptEngineFactory.getLanguageVersion(). 100% backward compatibility cannot be assured.
  • Field Details

    • GROOVY_ENGINE_NAME

      static final String GROOVY_ENGINE_NAME
      This is a constant for the Groovy engine. The script filename extension for Groovy is "groovy".
      See Also:
    • JS_ENGINE_NAME

      static final String JS_ENGINE_NAME
      This is a constant for the JavaScript engine. The script filename extension for JavaScript is "js".
      See Also:
  • Method Details

    • getEngineNames

      @NotNull List<String> getEngineNames()
      Returns list of supported scripting engine names. For available values see *_ENGINE_NAME constants in this class.
    • engine

      @NotNull IScriptEngineBuilder engine()
      Returns builder for script engine.
    • polarionScriptingEngine

      @NotNull IScriptEngineBuilder polarionScriptingEngine(@Nullable String projectId)
      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