3 Replies Latest reply on Aug 16, 2011 6:22 AM by Robert Haché

    How to change the default workspace polling behaviour

    pchamoun Level 1

      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)


      Set the value in a javascript file and then read this from the Workspace app.  You can see an example of this in the same createChannelSet() method wrt the “enableSmallMessages” variable. To do this:


      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   

            function pollingInterval()


                  return 10000;



      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