EN · DE · RU · FR · ES

#1047: GroovyScriptExecutor.kt

projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt Typ: Kotlin · Rolle: Scripting · Quelle: projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt 38 Zeilen · 8 Code · 27 Kommentare · 3 leer
Quellcodedatei unter projectforge-business/src/main/kotlin/org/projectforge/business/scripting/GroovyScriptExecutor.kt mit Kotlin-Code für die Scripting-Ebene.

Codestruktur

Annotationen: see, param

Klassen: GroovyScriptExecutor

Obertyp(en): ScriptExecutor

Funktionen (1): execute

Eigenschaften (1): groovyExecutor

Importe: 1 Pakete

Paket: org.projectforge.business.scripting

Quellcode (gekürzt)

package org.projectforge.business.scripting

import org.projectforge.framework.configuration.ApplicationContextProvider

class GroovyScriptExecutor(scriptLogger: ScriptLogger) : ScriptExecutor(scriptLogger) {
  /**
   * @param script Allgemeine Importe werden vorangestellt.
   * @param variables Zu bindende Variablen. Variablen sind über binding["key"] oder direkt nutzbar, wenn #autobind# Teil des Skripts ist.
   * @see GroovyExecutor.executeTemplate
   */
  override fun execute(): ScriptExecutionResult {
    val groovyExecutor = ApplicationContextProvider.getApplicationContext().getBean(GroovyExecutor::class.java)
    return groovyExecutor.execute(scriptExecutionResult, effectiveScript, allVariables, scriptLogger)
  }
}

Git-Verlauf

868d6abb7 2025 -> 2026
63081666f Quellcode-Dateiköpfe: 2024 -> 2025.
aeff942b5 Skriptausführung verbessert (Protokollierung für Endbenutzer). DynamicTable.jsx: (Aktualisierungsimplementierung korrigiert, refreshMethod wird jetzt unterstützt.)
b6092df09 Urheberrecht 2023 -> 2024
ab45d51fa Urheberrecht 2001-2022 -> 2001-2023.