when I'm trying to send data to a file in a directory, file is getting generated in a directory but my process execution gets stop on Disk Connector itself. I doesn't reach it stop shape.
That is the way it works.
When the document is delivered to the directory as a file it is not forwarded for any further processing. There is no document to process. I also set a stop shape after disk / ftp-operation, even though processing stops after sending document to ftp / disk.
This is expected behavior of Disk and FTP operations. You need to worry only if control shows red when it reaches the connector. If you plan to do any other task based on the successful transmission of a file using disk, you can set a flag before the connector. Based on the flag true or false (success or failure) you can move the control to another branch.
Retrieving data ...