InvokeScriptedProcessor 2025.10.2.19¶
Bundle¶
org.apache.nifi | nifi-scripting-nar
Beschreibung¶
Experimental - Invokes a script engine for a Processor defined in the given script. The script must define a valid class that implements the Processor interface, and it must set a variable ‚processor‘ to an instance of the class. Processor methods such as onTrigger() will be delegated to the scripted Processor instance. Also any Relationships or PropertyDescriptors defined by the scripted processor will be added to the configuration dialog. The scripted processor can implement public void setLogger(ComponentLog logger) to get access to the parent logger, as well as public void onScheduled(ProcessContext context) and public void onStopped(ProcessContext context) methods to be invoked when the parent InvokeScriptedProcessor is scheduled or stopped, respectively. NOTE: The script will be loaded when the processor is populated with property values, see the Restrictions section for more security implications. Experimental: Impact of sustained usage not yet verified.
Eingabeanforderung¶
Unterstützt sensible dynamische Eigenschaften¶
true
Eigenschaften¶
Eigenschaft |
Beschreibung |
|---|---|
Module Directory |
Durch Kommas getrennte Liste von Pfaden zu Dateien und/oder Verzeichnissen, die vom Skript benötigte Module enthalten. |
Script Body |
Body des auszuführenden Skripts. Es kann nur eine der Optionen „Script File“ oder „Script Body“ verwendet werden |
Script Engine |
Sprach-Engine zur Ausführung von Skripten |
Script File |
Pfad zur auszuführenden Skriptdatei. Es kann nur eine der Optionen „Script File“ oder „Script Body“ verwendet werden |
Statusmanagement¶
Bereiche |
Beschreibung |
|---|---|
LOCAL |
Skripte können den Status mithilfe der Statusmanagement-APIs speichern und abrufen. Weitere Informationen finden Sie im Abschnitt „State Manager“ des Entwicklerhandbuchs. |
CLUSTER |
Skripte können den Status mithilfe der Statusmanagement-APIs speichern und abrufen. Weitere Informationen finden Sie im Abschnitt „State Manager“ des Entwicklerhandbuchs. |
Einschränkungen¶
Erforderliche Berechtigung |
Erläuterung |
|---|---|
execute code |
Bietet dem Operator die Möglichkeit, beliebigen Code unter Verwendung aller Berechtigungen von NiFi auszuführen. |