This question is related to this SO question
Above solution solved my problem, Now I tried to connect this into a flow coming from QueryRecord processor.
Here this QueryRecord divide my flowfile into two streams. Lets say customers and suppliers. And ExecuteGroovyScript is used to add ORDER and COMPLAINT.
Sample csv :
id,record_type
1,0
2,0
3,1
So result should be :
id,record_type
1,ORDER
2,ORDER
3,COMPLAINT
Actual result just placed default 'IGNORE' value.

