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

プロパティ

プロパティ

説明

目的地

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 エンティティ拡張の脆弱性を避けるため、この機能は無効にしてください。

リレーションシップ

名前

説明

failure

FlowFiles は、 FlowFile の内容に対して XQuery を評価できない場合、この関係にルーティングされます。

matched

FlowFiles は、 XQuery が正常に評価され、その結果 FlowFile が変更されると、この関係にルーティングされます。

unmatched

FlowFiles は、 XQuery が FlowFile のコンテンツと一致せず、Destination が flowfile-content にセットされている場合、この関係にルーティングされます。

属性の書き込み

名前

説明

user-defined

このプロセッサーは、<Destination> プロパティが flowfile-attribute にセットされている場合、ユーザー定義属性を追加します。