EN · DE · RU · FR · ES

#1047: GroovyScriptExecutor.kt

projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt Type: Kotlin · Role: Scripting · Source: projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt 38 lines · 8 code · 27 comments · 3 blank
Source code file at projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt containing Kotlin code for the Scripting layer.

Code Structure

Annotations: see, param

Classes: GroovyScriptExecutor

Supertype(s): ScriptExecutor

Functions (1): execute

Properties (1): groovyExecutor

Imports: 1 packages

Package: org.projectforge.business.scripting

Source Code (abridged)

package org.projectforge.business.scripting

import org.projectforge.framework.configuration.ApplicationContextProvider

class GroovyScriptExecutor(scriptLogger: ScriptLogger) : ScriptExecutor(scriptLogger) {
  /**
   * @param script Common imports will be prepended.
   * @param variables Variables to bind. Variables are usable via binding["key"] or directly, if #autobind# is part of script.
   * @see GroovyExecutor.executeTemplate
   */
  override fun execute(): ScriptExecutionResult {
    val groovyExecutor = ApplicationContextProvider.getApplicationContext().getBean(GroovyExecutor::class.java)
    return groovyExecutor.execute(scriptExecutionResult, effectiveScript, allVariables, scriptLogger)
  }
}

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
aeff942b5 Script execution improved (logging for end user). DynamicTable.jsx: (refresh implementation fixed, refreshMethod is now supported.)
b6092df09 Copyright 2023 -> 2024
ab45d51fa Copyright 2001-2022 -> 2001-2023.