Skip to main content
Question

Email Results To in a Workspace App

  • March 19, 2025
  • 1 reply
  • 24 views

hkingsbury
Celebrity
Forum|alt.badge.img+51

Before I get into the details I see there have been a couple of similar questions asked it the past, specifically

As well as this idea

 

What I’m wanting to be able to do is have a process, specifically one run with the Data Download Service, that has been run through a Workspace App to post to the DATADOWNLOAD_ASYNC_JOB_SUCCESS Topic. Effectively replicating the ‘Email Result To’ functionality of the Run Workspace interface.

 

Now, I know how you could achieve this by modifying the workspace and include the email functionality there, but that means updating a significant number of workspaces, and ensuring that future workspaces are built with that functionality included.

 

Does anyone have any ideas? Could an automation app be a solution (don’t have much experience with them)?

1 reply

j.botterill
Influencer
Forum|alt.badge.img+35
  • Influencer
  • March 19, 2025

If you do have the Data Download service with the topic published, then consider an Automation with trigger = FME Flow Topic Trigger, select the topic,

then output the success port, run a workspace that performs X

The FMW might need the a published parameter for the Flow topic text

You pass the Flow “Event as JSON” to this published parameter

Then in the workspace, parameterFetcher of the published parameter to an attribute i.e. Topic… and play with the JSON

Extracting job success vs failure topics, StatusMessage, workspace name, job_id, status and whatever else you need etc.

Then call the FME Rest API using those extracted elements using HTTPcaller

$(FME_SERVER_WEB_URL)/fmerest/v3/transformations/jobs/id/@Value(job_id)/result. which will have the json["request"]["publishedParameters"] and there’s a way with the REST to even get the data download_URL you can extract

 $(FME_SERVER_WEB_URL)/fmerest/v3/transformations/jobs/id/@Value(job_id)/log. for the extracting error json["items"][*]["message"] out of transaction log text using StringSearcher for the common issues

Pass all of that into an Emailer ! for the success vs the failure


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