Is there any example java application to download the scheduler extracted file

Options
tunglt15
tunglt15 Newcomer

I had already setup a scheduler to export a report with the file’s name like example “ThankU”.

So, is there any example java application to get the file extracted from schedule by file name as “ThankU”.

Thank for your support,

Best Answer

  • @tunglt15,

    we do not have exactly that sample in store. Here is what we have:

    The DSS Java samples we have are described here, you can download them here. There is one, called DSS2ImmediateScheduleTermsAndCondition, that contains some methods you could reuse to build your own application:

    • checkExtractionComplete checks if a schedule (identified by its ID, but it is easy to retrieve that from the name) has completed.
    • getReportExtractionFiles retrieves the extraction files.

    This is not the entire set of methods you need, but it is a starting point.

    There is a Python sample that does exactly what you want, in case that helps. It is stored under the TRTH REST API, but can also be used for the DSS REST API (both use the same servers, and share a few common mechanisms). If you just need the functionality and don't care about the language, this should do the trick. The sample is called TRTH_Get_Latest_Schedule_Files, it is described here, and can be downloaded here.

Answers