1) Create GenerateFlowFile with the next Custom Text:
2) Create ExecuteSQL. Set "Output Batch Size" = 1.
3 flowfiles in the "success" connection.
Commit method has the next requirement:
Commits the current session ensuring all operations against FlowFiles within this session are atomically persisted. All FlowFiles operated on within this session must be accounted for by transfer or removal or the commit will fail.
At the time of any commit, an input flowfile (fileToProcess) still exists and has not been accounted for by transfer or removal.