EvaluateXQuery 2025.10.2.19

Bundle

org.apache.nifi | nifi-standard-nar

Beschreibung

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.

Tags

XML, XPath, XQuery, bewerten

Eingabeanforderung

REQUIRED

Unterstützt sensible dynamische Eigenschaften

false

Eigenschaften

Eigenschaft

Beschreibung

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

Output: Indent

Gibt an, ob der Prozessor bei der Ausgabe eines Ergebnisbaums zusätzliche Leerzeichen einfügen darf.

Output: Method

Identifiziert die allgemeine Methode, die für die Ausgabe eines Ergebnisbaums verwendet werden soll.

Output: Omit XML Declaration

Gibt an, ob der Prozessor bei der Transformation eines Ergebnisbaums eine XML-Deklaration ausgeben soll.

Validate DTD

Eingebettete Document Type Declaration in XML zulassen. Dieses Feature sollte deaktiviert werden, um Sicherheitslücken durch die Erweiterung von XML-Entitäten zu vermeiden.

Beziehungen

Name

Beschreibung

failure

FlowFiles werden an diese Beziehung weitergeleitet, wenn die XQuery nicht anhand des Inhalts des FlowFile ausgewertet werden kann.

matched

FlowFiles werden an diese Beziehung weitergeleitet, wenn die XQuery erfolgreich ausgewertet und das FlowFile daraufhin geändert wurde.

unmatched

FlowFiles werden an diese Beziehung weitergeleitet, wenn die XQuery nicht mit dem Inhalt des FlowFile übereinstimmt und das Ziel auf „flowfile-content“ gesetzt ist.

Schreibt Attribute

Name

Beschreibung

user-defined

Dieser Prozessor fügt benutzerdefinierte Attribute hinzu, wenn die Eigenschaft <Destination> auf „flowfile-attribute“ gesetzt ist.