close and submit the TBUI task from applet script
Is there any scripting approach to close and submit the TBUI task from applet script ? we have used the below script in our implementation and works fine for most of the places.but gave an error in one TBUI flows. wanted to know if this below scrip is correct or any suggestions.
var bsTask = TheApplication().GetService("Task UI Service (SWE)");
var psIn = TheApplication().NewPropertySet();
var psOut = TheApplication().NewPropertySet();
bsTask.InvokeMethod("SubmitTask", psIn, psOut);