Hello,

I am considering using EvaluateJsonPath processor to check if JSON
formatted FlowFile content contains a number of predefined fields. The
processor defines three relationships: failure, unmatched and matched as
follows:

failure FlowFiles are routed to this relationship when the JsonPath cannot
be evaluated against the content of the FlowFile; for instance, if the
FlowFile is not valid JSON
unmatched FlowFiles are routed to this relationship when the JsonPath does
not match the content of the FlowFile and the Destination is set to
flowfile-content
matched FlowFiles are routed to this relationship when the JsonPath is
successfully evaluated and the FlowFile is modified as a result

If the flowfile-content Destination is used, the existance only one field
can be checked. To validate multiple fields, flowfile-attribute destination
must be used, this means however that the unmatched relationship will not
be used.

This actually prevents one from being able to check existance multiple JSON
fields in the content, if I understand correctly. What is the reason for
this implementation? Is there any other processor that could be used to
achieve the task?

Regards,
Angel


Angel Kafazov
CST LTD
Bul. Bulgaria, blok 10, 6500 Svilengrad
Bulgaria
+359877336002 (BG Mobile)
+4961509729845 (DE Landline)
Email: [email protected]
http://cst-bg.net

Reply via email to