EvaluateXQuery 2025.10.2.19¶
Bundle¶
org.apache.nifi | nifi-standard-nar
Description¶
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.
Exigences en matière d’entrées¶
REQUIRED
Prend en charge les propriétés dynamiques sensibles¶
false
Propriétés¶
Propriété |
Description |
|---|---|
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 |
Sortie : Indentation |
Indique si le processeur peut ajouter des espaces supplémentaires lors de la sortie d’une arborescence de résultats. |
Sortie : Méthode |
Identifie la méthode globale à utiliser pour la sortie d’une arborescence de résultats. |
Sortie : Omettre la déclaration XML |
Indique si le processeur doit sortir une déclaration XML lors de la transformation d’une arborescence de résultats. |
Valider DTD |
Autoriser la déclaration de type de document intégrée dans XML. Cette fonction doit être désactivée pour éviter les vulnérabilités liées à l’expansion de l’entité XML. |
Relations¶
Nom |
Description |
|---|---|
failure |
Les FlowFiles sont routés vers cette relation lorsque le XQuery ne peut être évalué par rapport au contenu du FlowFile. |
matched |
Les FlowFiles sont routés vers cette relation lorsque le XQuery est évalué avec succès et que le FlowFile est modifié en conséquence |
unmatched |
Les FlowFiles sont routés vers cette relation lorsque le XQuery ne correspond pas au contenu du FlowFile et que le paramètre Destination est fixé à flowfile-content |
Écrit les attributs¶
Nom |
Description |
|---|---|
user-defined |
Ce processeur ajoute des attributs définis par l’utilisateur si la propriété <Destination> est réglée sur flowfile-attribute . |