vendredi 9 mars 2018

Nifi testing : Input Port and Output Port

I have a flow with one input and 2 output flows (happy path and failure path). I would like to test the flow, thinking to put message directly to the input flow and validate the output flows. Possible options are to use REST api or site-2-site with transaction ?. I managed to get to use site-to-site for write and read but i have noticed that output port is left with message even after consuming it (i did commit the transaction i.e . transaction.confirm() & transaction.complete()).

Anyone managed to get this working and can share the sample code ? please or any other way to test this ?

Aucun commentaire:

Enregistrer un commentaire