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
  • 1.  Schedular srvc GetTaskInfo

    Posted Fri January 21, 2005 03:36 PM

    Hi guys,
    Does any one of you got a chance to look into public/Scheduler
    services ,presently I am using one using this service scheduler getTastInfo
    when I am calling it with a given Task ID I am getting all the parameters , right now i am interested in the parameter “nextrun”. I am getting big number i assuming that that in mill sec .can any one confirm me about that.
    When I used datetimeformat service to change that time .
    I am getting some thing like 1970-01-02 07:43:39
    But the Scheduler are supposed top give me some thing like
    2005-01-01 12:12:01

    is there any other way to get present time that schedule supposed to run in yyyy-MM-dd hh:mm:ss from that field ?

    Is there any procedure to get that time stamp ??

    I appreciate your replies.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Schedular srvc GetTaskInfo

    Posted Fri January 21, 2005 06:48 PM

    You’ll get a big number when the task is actually running. You can see this behavior on the Scheduled Tasks page in Administrator. I’ve also seen negative numbers appear (-1, -2). I think this is an internal trick used to honor the “do not overlap” setting.

    If you’re after when the next run will be, you’ll need to put in a threshold check of some sort (nextrun bigger than x) to know that the next run time is currently unknown.


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 3.  RE: Schedular srvc GetTaskInfo

    Posted Sun January 23, 2005 10:44 PM

    thanks Rob,
    we had a problem that is we scheduled some complex job in the schedular and there was some problem and the task didnt run when it supposed to run . i am trying to figure out how can we monitor that the Complex task had run or not .
    Is there any API which we need to call or any methods
    please let me know ,

    thanks


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Schedular srvc GetTaskInfo

    Posted Sun January 23, 2005 11:11 PM

    Can someone send me webMethods administration and developer tutorial pdf files… I dont have access to any webMethods resources at the moment. Would appreciate it.

    E-mail.: IamParacha@Yahoo.com
    Thanks.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Schedular srvc GetTaskInfo

    Posted Mon January 24, 2005 02:58 AM

    Hello Kitt, the most simple solution is to write debugLog while your tasked service is run.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: Schedular srvc GetTaskInfo

    Posted Tue January 25, 2005 10:25 PM

    Good advice from terori. The other thing to do is to wrap the service that gets schedule in try/catch sequence blocks so that exceptions never get raised to the scheduled task. If it’s a wM-supplied service that you’re scheduled, write a wrapper service for it and have it catch all exceptions. Scheduled tasks don’t react well to exceptions.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 7.  RE: Schedular srvc GetTaskInfo

    Posted Wed January 26, 2005 11:22 PM

    thanks rob,
    If we write some thing to log file when ever that particular scheduled service had run.
    If the Scheduled service is not run there will be no log at that exact time .
    So that means that we need to monitor that log file at particular time ,If that is not there raise the case or do something.
    what will be that tool we use to monitor (at that exact time ) you have any idea ??

    Is that the efficient way ?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services