Environment
Business Service Manager 4.5 August bundle
Business Service Manager 4.6
Situation
Symptoms
If an inactivity timeout has been set for clients, long running client-side scripts will timeout before completing.
Resolution
Corrective Steps
The inactivity timer must be suspended for the duration of long running client-side scripts and then resumed when the script completes. The following must be added to the script in question:
var client = Packages.com.mosol.Formula.Client;
client.InactivityTimer.suspend();
do_long_running_function();
client.InactivityTimer.resume();
where do_long_running_function() is the long running client script.
Additional Information
Notes
This fix is only needed for client-side scripts which are expected to run longer than the inactivity timeout setting. Client-side scripts are client-side operations and user automations. This fix is not needed for client-side scripts that are invoked from a server-side script.