Skip to main content
Solved

Extract schedule information from Automations in FME Server

  • September 3, 2020
  • 5 replies
  • 114 views

stefanh
Contributor
Forum|alt.badge.img+8

On our FME Server (version 2019.0.2) we have many Automations running; and many Automations include a schedule.

I would like to get the time and day when the Automation is running. I can't find this in the API, is there any other way I could extract this information?

Best answer by jlutherthomas

Hi @stefanh​ 

 

This is possible using the FME Server REST API (in 2020.1.1 at least, I'm not sure which version this became possible in).

In your FME Server Web UI at the top right click Help > REST API.

Find the Get Schedules API call and see if it includes the includesAutomations true|false parameter:

Screen Shot 2020-09-03 at 10.08.57 AM

 

If not, you will have to upgrade your FME Server.

Once you get the response, you can see which Schedules are from Automations based on the description. The name of the Schedule will be the Automation name and the description of the Schedule will be the Automation ID:

 

Screen Shot 2020-09-03 at 10.11.19 AM

You can then use the Automation ID in the 'Retrieve information about an automation workflow' API call if you wanted.

View original
Did this help you find an answer to your question?

5 replies

Forum|alt.badge.img+2
  • Best Answer
  • September 3, 2020

Hi @stefanh​ 

 

This is possible using the FME Server REST API (in 2020.1.1 at least, I'm not sure which version this became possible in).

In your FME Server Web UI at the top right click Help > REST API.

Find the Get Schedules API call and see if it includes the includesAutomations true|false parameter:

Screen Shot 2020-09-03 at 10.08.57 AM

 

If not, you will have to upgrade your FME Server.

Once you get the response, you can see which Schedules are from Automations based on the description. The name of the Schedule will be the Automation name and the description of the Schedule will be the Automation ID:

 

Screen Shot 2020-09-03 at 10.11.19 AM

You can then use the Automation ID in the 'Retrieve information about an automation workflow' API call if you wanted.


stefanh
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • September 4, 2020

Hi @jlutherthomas​ ,

 

Thanks for the answer; this is userful.

A good reason to upgrade FME Server :).

 

Regards, Stefan


michelle_n
Contributor
Forum|alt.badge.img+1
  • Contributor
  • November 19, 2021

Hi @jlutherthomas​ 

I have the same question but I am on FME Server 2021. However, I can't seem to find where the Scheduled Trigger information in Automations are located in the API. I have looked through the "automations : Automation Manager" . I am able to find the log file (which details the last run) and the general information of the automation but can't seem to find the CRON expression for the schedule trigger. Am I missing something or looking at the wrong place?

Thanks!

 


Forum|alt.badge.img+2
mning wrote:

Hi @jlutherthomas​ 

I have the same question but I am on FME Server 2021. However, I can't seem to find where the Scheduled Trigger information in Automations are located in the API. I have looked through the "automations : Automation Manager" . I am able to find the log file (which details the last run) and the general information of the automation but can't seem to find the CRON expression for the schedule trigger. Am I missing something or looking at the wrong place?

Thanks!

 

@mning​ 

Have you looked at the schedules section of the API? Try setting includeAutomations to true, and that should give you the cron expression.


michelle_n
Contributor
Forum|alt.badge.img+1
  • Contributor
  • November 22, 2021
jlutherthomas wrote:

@mning​ 

Have you looked at the schedules section of the API? Try setting includeAutomations to true, and that should give you the cron expression.

Thank you, I didn't think to look at the schedules section of the API. I see it now.

Thanks again!

Michelle


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings