Gábor Gyimesi created MINIFICPP-2439:
----------------------------------------

             Summary: Restrict failure and original relationship usage in NiFi 
python processors
                 Key: MINIFICPP-2439
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-2439
             Project: Apache NiFi MiNiFi C++
          Issue Type: Improvement
            Reporter: Gábor Gyimesi
            Assignee: Gábor Gyimesi


In NiFi python processors the failure and original relationships are special 
and used in special ways.

In case the result is "failure" the original flow file is transferred to the 
"failure" relationship with the added attributes in the 
FlowFileTransformResult, it cannot have any new content.

The incoming flow file is forwarded to the "original" relationship 
automatically if the result is not "failure". This relationship cannot be used 
by the user as per the NiFi python developer documentation.

These restrictions should be enforced in the NiFi Python API in MiNiFi C++ by 
raising an exception if any of the custom processors violate these restrictions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to