what can be a better way to remove empty flowfiles which contents only curly braces

119 views Asked by At

Is there any better way to remove the empty flowfile which contents only curly braces {} . I have achieved, (attaching the flow for reference) but looking for short and effective method like Jolt Spec or any other to reduce the processing time and processor count.

Attaching the screenshot of flowfile content

And I'm using below approach

1

There are 1 answers

0
Barbaros Özhan On BEST ANSWER

You can use "@" wildcard vs. "" matching nested within a wrapper object notation with key "*" in a JoltTransformJSON processor such as

[
  {
    "operation": "shift",
    "spec": {
      "*": {
        "@": ""
      }
    }
  }
]