Automic Workload Automation

  • 1.  API connection login time

    Posted Apr 05, 2018 05:14 AM
    Hello,

    When getting a connection using the API.  Is there anyway we can get time the connection logged on?

    I want to get the local time of the machine I am connecting to so I can use this in a schedule object to activate the associated job 5 minutes after the API has connected.

    Cheers,

    Dan.


  • 2.  API connection login time

    Posted Apr 06, 2018 01:58 AM
    Hi DanielGates628573

    Many thanks for your request.
    Have you had a look towards the API Documentation ?`

    Under the Package com.uc4.communication you will find an array of classes for the communication with the UC4 Server.

    Hope this helps a little.

    Should you have any further questions or queries, feel free to contact me anytime.

    Cheers
    Daniel




  • 3.  API connection login time

    Posted Apr 06, 2018 03:58 AM
    Hello Daniel_Hausdorf_6982

    I have had a look at the documentation and thought it may be in the ConnectionAttributes class somewhere but all I can find that has anything to do with date/time is the getSessionTimezone method...

    Am I barking up the wrong tree?

    Cheers,

    Dan


  • 4.  API connection login time

    Posted Apr 06, 2018 04:04 AM
    Hi DanielGates628573

    Many thanks for your quick response. 
    Mmmm... you might want to look at the AEConnection  Class 'getSessionInfo'

    ConnectionAttributes getSessionInfo()
    Returns information about the current UC4 Session.
    Returns:
    Session information

    Cheers
    Daniel


  • 5.  API connection login time

    Posted Apr 06, 2018 05:51 AM
    Hello  Daniel_Hausdorf_6982

    I think that it was i was looking at? the ConnectionAttributes class... all I can see in there is the timezone method? there does not seem to be anything relating to connection/logon time?  Again, please feel free to let me know if I am in the wrong area?

    Cheers,

    Dan