NIFI-484 EvaluateJsonPath: always overwrites content

Signed-off-by: Mark Payne <markap14@hotmail.com>
This commit is contained in:
Jon Anderson 2015-04-04 21:18:47 -04:00 committed by Mark Payne
parent 2b21b46501
commit 4a16845309

View File

@ -269,6 +269,7 @@ public class EvaluateJsonPath extends AbstractJsonPathProcessor {
switch (destination) { switch (destination) {
case DESTINATION_ATTRIBUTE: case DESTINATION_ATTRIBUTE:
jsonPathResults.put(jsonPathAttrKey, resultRepresentation); jsonPathResults.put(jsonPathAttrKey, resultRepresentation);
break;
case DESTINATION_CONTENT: case DESTINATION_CONTENT:
flowFile = processSession.write(flowFile, new OutputStreamCallback() { flowFile = processSession.write(flowFile, new OutputStreamCallback() {
@Override @Override