IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Start / Stop timer for async command interval at clientside

  • 1.  Start / Stop timer for async command interval at clientside

    Posted Wed October 17, 2012 06:10 AM

    Hi All,

    I want to start/stop the timer for Async Command Interval control at client side (based on user interaction with the screen).

    1. used setDisabled() method to disable the async command interval control on user interaction with a button. But it did not stop the timer and continuing the async call to server side action.
    2. Not sure how to use start() and stop() methods defined in CAF.Command.Interval.Model (Tried using with below syntax but has thrown javascript error - Reference error: s is not defined).
    CAF.model("#{activePageBean.clientIds['refreshDataAsyncCmdInterval']}").stop(
    function methodName(){
    
    }, false);

    Do you guys have any idea how to start / stop timer for this control?

    Environment: webMethods 7.1.3

    regards,
    Raj


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 2.  RE: Start / Stop timer for async command interval at clientside

    Posted Wed October 17, 2012 01:56 PM

    I believe the javascript error when calling the CommandInterval stop() method is a known issue that was already fixed in later releases of MWS (8.0+).

    If you are not able to upgrade to MWS 8.x, and you require a fix for the earlier release you will need to open an SR with support. You can reference defect MWS-2654 to expedite the issue analysis for the support engineer.


    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Start / Stop timer for async command interval at clientside

    Posted Thu October 18, 2012 05:47 AM

    Hi Eric,

    Thanks for your comments. Will raise an SR to get a fix for this issue.

    regards,
    Raj


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS