Skip to main content
Question

Run a workspace in Automations with Data Download Service


brendwal
Contributor
Forum|alt.badge.img+2

Hello,

I’m looking to trigger a workspace with a webhook which generates zipped data using the data download service which then provides that data link URL in a customized email to the user.

I’ve setup an Automation to be triggered by a webhook which will run a workspace that generates the data (and outputs the information for the email with an Automation writer). I’ve got this launching another script that uses the first script’s JOBID along with an HTTPCaller to get the URL link which is then output using an Automation writer. This is finally passed through a Log and then on to an Email external action that uses the email information and the URL to generate a custom email with the download URL.

However, when I trigger the automation, no URL is generated (even though the process works) as the workspace is not run with the Data Download service. I assume it defaults to Job Submitter. 

Is there a way to run a workspace in an Automation and make it use the data download service?

If not, how can this not be an option in the settings for the workspace Action?

This works correctly if I run it manually and select the Data Download service.

This seems like it would be a common process, but I’ve been working on this problem for years without a satisfactory solution.

Is there another method that would provide the functionality I need?

 

 

Thanks

5 replies

whichwayisnorth
Contributor
Forum|alt.badge.img+2

I haven’t tested this myself, but it looks like you would want to call the workbench as detailed in the manual. It includes the ability to add email addresses to send the download link to once the file has been written: https://docs.safe.com/fme/html/FME-Flow/ReferenceManual/service_datadownload.htm


brendwal
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • January 24, 2025

Yeah, ideally, I’d like to run a workspace with the data download service, but one of my questions is how do I do that within an automation.


whichwayisnorth
Contributor
Forum|alt.badge.img+2

So I’ve had a play around. The http caller works just fine in desktop but in server it says that it can’t reach the URL.

One way I can see it working is to have your webhook trigger a workbench that constructs the URL and emails it to the user. They then access the URL which will return the link to the zipped data. This would require them to have a user account to run the data download service however.

Example, upload your data processing workbench to a repo.
Create automation with webhook trigger, URL constructor, and emailer. 
When webhook triggers, you construct the data download email and send it to user.
http://<fmeserver>/fmedatadownload/Samples/test.fmw
They access the email, log in, which triggers the data download service / workbench which then returns the zip URL.


brendwal
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • February 5, 2025

Unfortunately, the end user isn’t going to have an FME account so that won’t work.


brendwal
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • February 5, 2025

So it turns out that you can’t really use the Data Download service within an automation as I was hoping.

I’ve created an idea for it here:

Run Workspace in an Automation using Data Download service | Community

 

I ended up using the automation to call a workspace that uses an HTTP Caller to run another workspace using the Data Download service asynchronously.

I then poll the job every few minutes to see if it has finished running.

When it has, I grab the URL and email it to the end user.


Reply


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