Hi Jagari Majumdar,
In one of the project I have captured this dataflow name using a different method where I had to record the stats from each dataflow in a table for analysis. So the method was.
1) Create Global Variable to capture dataflow name i.e. $G_Dataflow_Name
2) Write a script just before the dataflow inside a workflow.
3) In the above script pass the dataflow name manually and store it in global variable $G_Dataflow_Name
4) A the end of dataflow there will be another script which will read the statistics of dataflow like no. of inserts, update, delete, process time etc. and insert into a table for this dataflow.
This is how I had handled this. Hope this helps you in deciding the method for what you are doing.
Regards,
Ansari MS