Question

2
Replies
770
Views
ArnabB98 Member since 2014 1 post
Tata Consultancy Services
Posted: July 22, 2019
Last activity: January 31, 2020

FileUpload within Threshold time limit

System should display alert and cancel the transaction if user trying upload excel file and system take longer than thresh-hold time to load the file data.

Not able to figure out a OOTB solution. Analysis is in Progress. Tried this kind of solution below , when the time is elapsed then we can put a break statement. But while the thread of execution is on parsing of the file or on attaching the data to pyAttachStream of Data-Work-Attach-File class. How can we bring the point of execution to this while loop. More- Over I am having doubt on how to determine where the time is taken more, is that the parsing time or the attaching time to clipboard.

long start = System.currentTimeMillis();
long end = start + 60*1000;
while (System.currentTimeMillis() < end)
{
}
Can anyone help.
***Edited by Moderator Marissa to update platform capability tags****
Low-Code App Development System Administration
Share this page LinkedIn