Nifi not create to manage transactions between different processors. You could delete parent rows on child insertion failure...
– daggettNov 18 '19 at 04:48
Maybe i can use the same processor (such as ExecuteScript Proccessor)before inserting DB?This is just a guess....or API could get it?I need some suggestion.Thanks!@daggett
– CongNov 18 '19 at 05:46
Check this: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-groovyx-nar/1.5.0/org.apache.nifi.processors.groovyx.ExecuteGroovyScript/additionalDetails.html
– daggettNov 18 '19 at 06:08
Would you please add your complete flow to question? There is a way to insert parent and child records to DB in one transaction using Split, ReplaceText and MergeContent.
– Behrouz SeyediNov 18 '19 at 18:25
The scenario is that inserting parent and child record to DB,but child record does not succeed.How to roll back the parnet record?Please show your DateFlow.I would get hints.Thank you@BehrouzSeyedi
– CongNov 19 '19 at 00:24