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