EvaluateXQuery 2025.10.2.19

번들

org.apache.nifi | nifi-standard-nar

설명

Evaluates one or more XQueries against the content of a FlowFile. The results of those XQueries are assigned to FlowFile Attributes or are written to the content of the FlowFile itself, depending on configuration of the Processor. XQueries are entered by adding user-defined properties; the name of the property maps to the Attribute Name into which the result will be placed (if the Destination is ‘flowfile-attribute’; otherwise, the property name is ignored). The value of the property must be a valid XQuery. If the XQuery returns more than one result, new attributes or FlowFiles (for Destinations of ‘flowfile-attribute’ or ‘flowfile-content’ respectively) will be created for each result (attributes will have a ‘.n’ one-up number appended to the specified attribute name). If any provided XQuery returns a result, the FlowFile(s) will be routed to ‘matched’. If no provided XQuery returns a result, the FlowFile will be routed to ‘unmatched’. If the Destination is ‘flowfile-attribute’ and the XQueries matche nothing, no attributes will be applied to the FlowFile.

태그

XML, XPath, XQuery, 평가

입력 요구 사항

REQUIRED

민감한 동적 속성 지원

false

속성

속성

설명

Destination

Indicates whether the results of the XQuery evaluation are written to the FlowFile content or a FlowFile attribute. If set to <flowfile-content>, only one XQuery may be specified and the property name is ignored. If set to <flowfile-attribute> and the XQuery returns more than one result, multiple attributes will be added to theFlowFile, each named with a ‘.n’ one-up number appended to the specified attribute name

출력: 들여쓰기

결과 트리를 출력할 때 프로세서가 추가 공백을 추가할지 여부를 지정합니다.

출력: 메서드

결과 트리 출력에 사용해야 하는 전체 메서드를 식별합니다.

출력: XML 선언 생략

결과 트리를 변환할 때 프로세서가 XML 선언을 출력할지 여부를 지정합니다.

DTD 유효성 검사

XML 에서 임베디드 문서 유형 선언을 허용합니다. XML 엔터티 확장 취약점을 방지하려면 이 기능을 비활성화해야 합니다.

관계

이름

설명

실패

XQuery 가 FlowFile 의 내용과 일치하지 않을 경우 FlowFiles 은 이 관계로 라우팅됩니다.

matched

FlowFiles 은 XQuery 가 성공적으로 평가되고 FlowFile 이 수정되면 이 관계로 라우팅됩니다

unmatched

XQuery 가 FlowFile 의 내용과 일치하지 않고 대상이 flowfile-content로 설정된 경우 FlowFiles 은 이 관계로 라우팅됩니다.

Writes 특성

이름

설명

user-defined

<Destination> 속성이 flowfile 특성으로 설정된 경우 이 프로세서는 사용자 정의 특성을 추가합니다.