This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
1663.My_Batch_Run.gelHello I am writing a java script which will help me in execution of multiple gel scripts on target, sort of like batch run. The problem I am finding is the call expression.evaluate("RunTest()"); does not wait for the script to finish execution and moves on to next 'expression.evaluate'
/* var SCRIPT1='GEL_LoadGel("D:\\\\Varun\\\\Batch_Run.gel")'; */
session.expression.evaluate(SCRIPT1); /* var
session.expression.evaluate("Run_Batch(0)");
session.expression.evaluate("RunTest()");
/* some logic needed to wait for "RunTest()" to complete execution ? */
session.expression.evaluate(SCRIPT2);
session.expression.evaluate("Run_Batch(1)");
session.expression.evaluate("RunTest()");
Thanks
Hello,
One of GEL's limitations is that many of the built in GEL calls are asynchronous. I'm going to guess that your 'RunTest()' GEL function calls 'GEL_Run()'. That function is asynchronous.
If you want to guarantee synchronous behavior, you really should be using DSS.
Thanks
ki