Size of nifi flowfile in Groovy script

James McMahon <[email protected]>
Newsgroups gmane.comp.lang.groovy.user
Message-ID <CAEqJCe1NUcmg7a4eDT-XA=P01QNjbG1Zq9bNNOBN5z89aWPYSg@mail.gmail.com>
Hello. I am trying to determine a way to get the size of a NiFi flowfile
within a Groovy script. Has anyone done this before, and can tell me how to
do this from within Groovy?

This
https://jameswing.net/nifi/nifi-internal-fields.html
describes fileSize as a hidden field that can be accessed via expression
language, but I do not see how I can reference that in a Groovy script.

Thanks in advance for any help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.