Use FlowFile attributes in a executeScript NIFI python
<p>I'm trying to get attributes of a flowfile in my python script , I have done the following :</p>

<pre><code>class TransformCallback(StreamCallback):

    def __init__(self):
        pass

    def process(self, inputStream, outputStream):
        try:
            # Read input FlowFile content
            input_text = IOUtils.toString(inputStream, StandardCharsets.UTF_8)
            input_obj = json.loads(input_text)
</code></pre>

<p>but how can I access my flowfile attributes in the process method ?</p>