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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Adding amp Substracting from TimeStamp

    Posted 12/18/02 11:11 PM

    can anybody help me to implement logic for my problem.

    My problem is i am getting timestamp string 01:00:00

    in to pipeline in.I want to splitt it to Start time & Endtime.

    startTime value should be OriginalTimeStamp which i am

    getting in to pipeline - 1hr:00:00.End Time stamp should

    be OriginalTimeStamp-1hr:00:00 +00:59:00.

    Pl help me how to implement logic


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


  • 2.  RE: Adding amp Substracting from TimeStamp

    Posted 12/18/02 11:23 PM

    I’m not sure exactly what you are trying to do, but if I understand correctly, you want two timestamps? One in the beginning of a process and one at the end.

    At the beginning of the pipeline, create a map object, and add a transformer (pub.date:currentDate) to obtain the date/timestamp value. Map it to the variable StartTime

    At the end of the pipeline (or where relevant), insert another map (or cut and paste) and map the timestamp value to a new variable called EndTime.

    Now, if you want to obtain the elapsed time, then you will probably need to build a java service, input the two values and use the java utility to determine elapsed time. I am not a java guru, but I know this is possible, and even I could build it, so I do not think you will have a problem.

    Hope this helps.

    Ray


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