BPM: How to capture Webservice system Time

Dear friends,
I  have one Sybchrounous Interface as follows :
Local PI folder -
>PI -
> Webservice system
                             ( Sync Interface )
Overall flow:
1.        PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
2.        PI mapping converts the file to soap request message and sends it to Web Service
3.        PI receives the response soap message from web service converts into an XML file and places in the PI folder.
4.        The loop continues in PI BPM until all the records of particular time period are retrieved.
Logic in Detail:
5.     The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
6.     PI BPM sends this request in a synchronous mode to Web service and gets the response back.
7.     Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current  system  time of webservice when the query is executed on the web service System.
8.     BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web      service system time.
9.      From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
10   BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
Bottlenecks:
Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
Kindly guide  me how we can design this interface .
Renu.

Dear friends,
I  have one Sybchrounous Interface as follows :
Local PI folder -
>PI -
> Webservice system
                             ( Sync Interface )
Overall flow:
1.        PI Picks up the Control file consisting of date& time, count and start fields from PI folder.
2.        PI mapping converts the file to soap request message and sends it to Web Service
3.        PI receives the response soap message from web service converts into an XML file and places in the PI folder.
4.        The loop continues in PI BPM until all the records of particular time period are retrieved.
Logic in Detail:
5.     The initial request file consists of a user defined time stamp (since), count and start values to retrieve the initial load.
6.     PI BPM sends this request in a synchronous mode to Web service and gets the response back.
7.     Apart from the device details, the response message from WS consists of u2018current_timeu2019 field which is the current  system  time of webservice when the query is executed on the web service System.
8.     BPM has to capture this field during first iteration and updates the source request message field u2018sinceu2019 with the web      service system time.
9.      From next cycle, PI picks up the file which consists of WB service system time in the u2018sinceu2019 field.
10   BPM continues in loop until all the records are fetched from web service and writes the files with time stamp concatenated to the PI folder.
Bottlenecks:
Tried to implement with BPM ..But facing problems to implement point 4 ,8 and 10 .
Kindly guide  me how we can design this interface .
Renu.

Similar Messages

  • How to get the system time in a Swing application ?

    I know how to do it in JavaScript, but not java. Please help me, and also how to get the system time in an Applet. Thanks !!!

    Check this link, I hope it helps
    http://202.71.136.142:8080/globalleafs/Swing/View.jsp?slno=22&tbl=0

  • How to capture the Logout time in xMII

    Hi Friends,
    How to capture the logout time in xMII when the user clicks on Logout link
    Thanks

    Srikanth,
    It would be better to use a database table(s) to store your audit trail information than an xml file, which could grow beyond a manageable size and then require housekeeping efforts and file rolling, etc.  It would also be much easier to query user related information out of the logs, pareto charts for failed vs. successful login attempts, etc. if the data was stored in a database.
    Have you considered modifying the Relogin.jsp page link in the portal's sub-menu bar?  How about making your own version of this web page and changing the link pointer?  Keep in mind that whatever result you come up with here will need a significant update for NetWeaver UME compatibility in version 12.0.
    Regards,
    Jeremy

  • How do you return System Time of the local box in FTP command

    How do you return System Time of the local box in FTP command... since I want to output the system time of my local box copying to the FTP server...

    Its asking me to enter a new date... I actually want to return it into a log file since I am using ws_ftp.... but the log files dont have any date time being returned... i just want to be able to echo that date time into the log file... but it doesnt do that... I also tried
    SHELL ECHO %DATE% %TIME%
    but it returns this in the log file
    Processing Line 10 [SHELL ECHO %DATE% %TIME]
    I also tried in my ws_ftp script and it says:
    Processing Line 15 [!Date]
    Sending command [!Date] with parameter []
    !Date
    500 '!DATE': command not understood
    Failure in command [!Date]

  • How to set the system time in the program

    Hi All,
    How do we update the system time inside java programme.

    AFAIK there is no easy (pure java) way: either you exec something (depending on your paltform) or use native code. Appropriate privileges will be necessary.

  • How to change the system time in (E-Business Suite)

    Hi,
    I need to change the system timings in E-Business Suite.
    My Database & Application is on different nodes..
    How could i change system timings on both...
    Thanks,
    Alig

    Alig,
    Changing the OS date/time will have no impact on the data (except for the scheduled jobs at the database and the OS levels). As mentioned in the threads I referenced above, you have to stop the application/database, change the date/time at the OS level, and start the application.
    The application is just an interface which connects to the database, so it gets all the data from the database server. However, if you want to change the date/time it has to be done on both nodes (stop all the services first as mentioned above).
    Btw, what is the point of changing the date/time because of Ramadan? The business requirement of your client does not make sense (how does it differ from the application/database perspective if you start working at 9:00 AM instead of 7:00 AM for example)?
    The steps in the document should be enough, and if you do not trust any of the replies here you could simply log a SR and confirm this with Oracle support.
    Thanks,
    Hussein

  • How to capture transaction response time in SQL

    I need to capture  Transaction response time (i.e. ping test) to calculated the peak hours and averaged
    on a daily basis.
    and
    Page refresh time that is calculated no less than every 2 hours for peak hours and averaged on a daily basis. 
    Please assist
    k

    My best guess as to what you are looking for is something like the following (C#):
    private int? Ping()
    System.Data.SqlClient.SqlConnection objConnection;
    System.Data.SqlClient.SqlCommand objCommand;
    System.Data.SqlClient.SqlParameter objParameter;
    System.Diagnostics.Stopwatch objStopWatch = new System.Diagnostics.Stopwatch();
    DateTime objStartTime, objEndTime, objServerTime;
    int intToServer, intFromServer;
    int? intResult = null;
    objConnection = new System.Data.SqlClient.SqlConnection("Data Source=myserver;Initial Catalog=master;Integrated Security=True;Connect Timeout=3;Network Library=dbmssocn;");
    using (objConnection)
    objConnection.Open();
    using (objCommand = new System.Data.SqlClient.SqlCommand())
    objCommand.Connection = objConnection;
    objCommand.CommandType = CommandType.Text;
    objCommand.CommandText = @"select @ServerTime = sysdatetime()";
    objParameter = new System.Data.SqlClient.SqlParameter("@ServerTime", SqlDbType.DateTime2, 7);
    objParameter.Direction = ParameterDirection.Output;
    objCommand.Parameters.Add(objParameter);
    objStopWatch.Start();
    objStartTime = DateTime.Now;
    objCommand.ExecuteNonQuery();
    objEndTime = DateTime.Now;
    objStopWatch.Stop();
    objServerTime = DateTime.Parse(objCommand.Parameters["@ServerTime"].Value.ToString());
    intToServer = objServerTime.Subtract(objStartTime).Milliseconds;
    intFromServer = objEndTime.Subtract(objServerTime).Milliseconds;
    intResult = (int?)objStopWatch.ElapsedMilliseconds;
    System.Diagnostics.Debug.Print(string.Format("Milliseconds from client to server {0}, milliseconds from server back to client {1}, and milliseconds round trip {2}.", intToServer, intFromServer, intResult));
    return intResult;
    Now, while the round trip measurement is fairly accurate give or take 100ms, any measurement of latency to and from SQL Server is going to be subject to the accuracy of the time synchronization of the client and server.  If the server's and client's
    time isn't synchronized precisely then you will get odd results in the variables intToServer and intFromServer.
    Since the round trip result of the test is measured entirely on the client that value isn't subject to the whims of client/server time synchronization.

  • How to get the system time(hh:mm:ss) in jspx file itself.

    Hi I'm using jdeveloper 11.1.1.3.0.
    I am having one transient attribute in VO (data type is Timestamp and format is hh:mm:ss) and created the data control. Now I am drag and drop that attribute in one jspx file itself. if i run that page mean i need the current system time as a output. it ll automatically run in the output page(like digital clock - HH:MM:SS). how to implement this one plz help me sir.

    Hi john
    I got the output using the poll operation in the jspx file. But the mouse pointer is also updated(arrow mark and round alternatively). so how to stop the mouse pointer update.
    Regards
    Ragu

  • How to get printers system time&

    Hi all! 
    I need to get my printer's system time, cat you help me? May be somebody knows how do this?

    Hi Lexabb,
    Thanks for the reply.
    The printer you have is actually a commercial printer and this is a consumer printer forum.
    To get better assistance with your LaserJet 700 m712, I will suggest that you post this question on the commercial forums by clicking the following link: Printers - LaserJet, as you should be able to get better assistance for your commercial printer there
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • How to fetch current system time in milliseconds using AppleScript?

    I need to write the actual systemtime hh:mm:ss.msc into a field of FileMaker by using AppleScript (as FileMaker does still not support TimeStamps down to milli seconds) - now, how to realize that?
    Any help is welcome - Thanx

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • How do I access system time in MatrixX v62.2?

    I have written a number of scripts (MathScript) to extract block information from my SystemBuild models.  I have thought that it would be useful to display the elapsed time after the script has executed, however the functions provided in the version that I'm running (MatrixX version 62.2) don't seem to provide what I'm looking for.  The function I am currently trying to use is clock() and its variants;
    clock() - is no good, as it gives you the elapsed time since the last call.  If I write code that looks like this;
    clock()
    doSomeStuff()
    elapsedTime = clock()
    I can't be guaranteed that there are no calls to clock() within doSomeStuff(), so elapsedTime may not be the time elapsed since I called doSomeStuff().
    I'm running on a windows xp platform, so clock({cpu}) does the same as clock().
    Of course, I could use the clock({time}) and clock({date}) variants, convert them to a time in seconds since the start of the day or the month and just use that as a reference, but that just seems kinda wrong.  Although it is unlikely that anyone would be running these scipts at 12:00 at night at the end of the month, I know that somewhere along the way something had to know the system time to figure out the time and the date anyway.
    Is this conversion performed by clock()?  What function(s) does it use to access the system time? Are they accessible directly from XMath?

    Thanks for the feedback Bob.  I hadn't really considered using the negative result produced across 12:00 as a trigger for just adding another 24 hours to the result.  I can't see myself needing to run a script that runs for more than 24 hours, I just wanted some feedback so that I know how long they're running for.
    I will attach a version of the mso that I have built in case anyone wants it (had to attach as a txt, as mso is not in the allowed list).
    Attachments:
    TimerSec.txt ‏2 KB

  • Portugal OBD Webservice - System time

    I'm currently trying to implement a webservice for the communication of Oudbound deliveres to the Portuguese Tax Authorities, but an error related to the the system's time settings occurs.
    The other system is expecting the time to be in GMT, but the system time settings are in UTC+1 and that originates the error. The client is relutant to change the time settings due to the fact that it has several companies in the system from various countries and doesn't have a clear picture of the possible impact deriving from the change.
    Is there any way to modify the timestamp reported by the webservice on runtime?

    Hello,
    From my understanding WAS runs on the JAVA stack correct?
    This webservice is implemented in  OSS note 1901252

  • How to pass Current System time in the target field?

    Hi Experts
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Thanks
    Aprajita

    Hi Mathur,
    kindly help me in mapping a field in which I have to map current system time.
    I think there is no standard function for time like the date so do i write a UDF for the same or any other way an in case a UDF than please help in that.
    Mathur no need to write UDF for that..
    Use standard function Current date-------> In that (Target Format) u have to specify the time i.e: HHmmss
    Thats it..... Noe use this function as u like...
    Satya Kumar

  • Please provide an example of how to display the system time in CNiNumEdit.

    I need to display elapsed time in a numeric edit control. The value must be a double. Using MFC, please show me an example that displays the system time in a CNiNumEdit control.

    The trick is to set the FormatString of the num edit control to a format that displays dates/times and to use the COleDateTime class to handle converting the date/time to a double. COleDateTime encapsulates time stored as a DATE, which is a typedef for double. COleDateTime uses the same conversion factor for date/time as what the num edit expects, and since it supports a conversion operator to a DATE, which is really a double, and the num edit Value property is a double, displaying the current time in a num edit can be as simple as this:
    // Assuming you have a member variable called m_numEdit for a CNiNumEdit
    m_numEdit.FormatString = _T("hh:nn:ss");
    m_numEdit.Value = COleDateTime::GetCurrentTime();
    Hope this helps.
    - Elton

  • How can i get system time and day

    How can i get the system current time and save it into a variable, then get the current day like wednesday and save it into another variable. Can someone teach me how to set this. thanks
    regards,
    albert

    How can i get the system current time and save it
    into a variable, then get the current day like
    wednesday and save it into another variable. Can
    someone teach me how to set this. thanks
    regards,
    alberti've managed to do this but in gui format hope it suites you.
    import javax.swing.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    public class time{
         private Container content;
              private JTextField timeField, dateField;
         public static void main (String[]args){
              time t = new time();
              t.TextClockWindow();
              t.showGUI();
         public void TextClockWindow() {
    // Build the GUI - only one panel
    JFrame frame = new JFrame();
    content = frame.getContentPane();
    timeField = new JTextField(6);
    timeField.setFont(new Font("sansserif", Font.PLAIN, 20));
    dateField = new JTextField(6);
    dateField.setFont(new Font("sansserif", Font.PLAIN, 20));
    content.setLayout(new FlowLayout());
    content.add(timeField);
    content.add(dateField);
    // Create a 1-second timer and action listener for it.
    // Specify package because there are two Timer classes
    javax.swing.Timer t = new javax.swing.Timer(1000,new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    Calendar now = Calendar.getInstance();
    int h = now.get(Calendar.HOUR_OF_DAY);
    int m = now.get(Calendar.MINUTE);
    int s = now.get(Calendar.SECOND);
    //String ampm =now.get(Calendar.AM_PM);
    int y =now.get(Calendar.YEAR);
    int mon=now.get(Calendar.MONTH);
    int d=now.get(Calendar.DAY_OF_WEEK);
    dateField.setText(""+y+ ". "+mon+ "."+d);
    timeField.setText("" + h + ":" + m + ":" + s);
    //to dispaly the current date so easily;stvworks
    String rightNow = "" + new Date();
    t.start(); // Start the timer
    }//end constructor
    public void showGUI(){
         JFrame frame = new JFrame("Time Frame.");
              frame.add(content);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
    frame.setResizable(false);
    frame.setVisible(true);

Maybe you are looking for