InvokeScriptedProcessor 2025.10.2.19

バンドル

org.apache.nifi | nifi-scripting-nar

説明

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.

タグ

groovy, invoke, script

入力要件

機密動的プロパティをサポート

true

プロパティ

プロパティ

説明

モジュールディレクトリ

スクリプトが必要とするモジュールを含むファイルやディレクトリへのパスをカンマで区切ったリスト。

本文

実行するスクリプト本文。スクリプトファイルまたはスクリプト本文のどちらか一方のみを使用できます。

スクリプトエンジン

スクリプト実行用言語エンジン

スクリプトファイル

実行するスクリプトファイルのパス。スクリプトファイルまたはスクリプト本文のどちらか一方のみを使用できます。

状態管理

スコープ

説明

LOCAL

スクリプトは、状態管理 APIs を使用して状態を保存および取得できます。詳細については、『開発者ガイド』の「状態管理」のセクションを参照してください。

CLUSTER

スクリプトは、状態管理 APIs を使用して状態を保存および取得できます。詳細については、『開発者ガイド』の「状態管理」のセクションを参照してください。

制限事項

必要な許可

説明

実行コード

演算子に、 NiFi が持つすべてのパーミッションを想定して任意のコードを実行する能力を提供します。

こちらもご覧ください