SUCCESS
Set file Status = COMPLETE
Save bulk file record into DB
EXIT
YES
Set file Status = TERMINATE
Add this file in PENDING LIST
NO
SET CURRENT STATUS = PENDING
Fetch Pending file til PENDING LIST is empty
upload bulk file
Create Connection and process
Close Connection
pick the older PENDING bulk file and New a Thread to invoke bulk progress
Processing PENDING bulk file one by one
FAILED
PENDING...
Check exists Pending files by same user
New a Thread to invoke bulk progress
check whether exists Progressing