Here are the instructions on how to change the polling interval in workspace:
The workspace source project is usually under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace)
The file that needs to be modified is SessionManager.as and is under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\foundation\src\lc\fou ndation)
1- Add the following lines to the workspace-config.js file right after the enableSmallMessages var definition (the js file is in the sdk under (C:\Adobe\Adobe LiveCycle ES2\LiveCycle_ES_SDK\misc\Process_Management\Workspace\ws\Workspace\ui\html-template\js) – note that my example sets it to 10 seconds:
1- Then in the createChannelSet() method, define a new var with the same name and type=Number and default it to 3000 (to be consistent with the current behaviour):
var pollingInterval:Number = 3000;
2- Then, in the existing block where ExternalInterface.available is true, add the line to read the new value from the js file like this:
pollingInterval = ExternalInterface.call(“pollingInterval”);
3- Set pollingInterval on the channel with:
channel.pollingInterval = pollingInterval;
4- Add this function to the workspace-config.js file
// pollingInterval is the channelset polling interval in millisecs
Compile this code and rebuild the workspace war, making sure the war contents contain the updated js file too, and then the polling interval will be read from the js file, making it much easier to change.
Here is the doc on how to customize workspace: http://help.adobe.com/en_US/livecycle/9.0/customizeworkspaceui.pdf
Great job. This is definitely informative!
Thanks for posting this.
It will be helpful to have documented.