@Prakhar Agrawal
Take a look at the DistributedMapCache. It allows you to save flowfile data for consumption by processors across nodes and processors.
There are two controller components, the DistributesMapCacheServer (runs on one node) and the DistricutedMapCacheClient (runs on all nodes if you've got a cluster). There are also the processors that interact with the DistributedMapCache, namely FetchDistributedMapCache and PutDistributedMapCache
Take a look here for some elaboration/documentation:
https://nifi.apache.org/docs.html
https://community.hortonworks.com/questions/35223/distributedmapcacheclientservice-nifi-wecrawlerxml...
Here for examples using DistributedMapCache:
https://github.com/hortonworks-gallery/nifi-templates/tree/master/templates (webcrawler.xml template)
http://funnifi.blogspot.ca/2016/04/