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.
입력 요구 사항¶
민감한 동적 속성 지원¶
true
속성¶
속성 |
설명 |
|---|---|
모듈 디렉터리 |
스크립트에서 요구하는 모듈이 포함된 파일 및/또는 디렉터리 경로의 쉼표로 구분된 목록입니다. |
스크립트 본문 |
실행할 스크립트 본문입니다. 스크립트 파일 또는 스크립트 본문 중 하나만 사용할 수 있습니다 |
스크립트 엔진 |
스크립트 실행을 위한 언어 엔진 |
스크립트 파일 |
실행할 스크립트 파일의 경로입니다. 스크립트 파일 또는 스크립트 본문 중 하나만 사용할 수 있습니다 |
상태 관리¶
범위 |
설명 |
|---|---|
LOCAL |
스크립트는 상태 관리 APIs 를 사용하여 상태를 저장하고 검색할 수 있습니다. 자세한 내용은 개발자 가이드의 상태 관리자 섹션을 참조하십시오. |
CLUSTER |
스크립트는 상태 관리 APIs 를 사용하여 상태를 저장하고 검색할 수 있습니다. 자세한 내용은 개발자 가이드의 상태 관리자 섹션을 참조하십시오. |
제한 사항¶
필수 권한 |
설명 |
|---|---|
코드 실행 |
NiFi 가 가진 모든 권한을 가정하여 임의의 코드를 실행할 수 있는 기능을 연산자 제공합니다. |