Question

How to run a FME Server workspace with 2 services (Data Streaming and Job Submitter) at the same time?

  • 18 July 2018
  • 1 reply
  • 12 views

Badge

I am trying to run an FME workspace on server, I run it through a web interface (a web page). The workspace is meant to produce a JSON string as a result (when the workspace runs successfully) and in order to do this I use the DataStreaming transformation service. When the workspace fails, I would like it to send an email advising of the failure. I have already all the notification and topic setup (using JOBSUBMITTER_ASYNC_FAILURE) and I tested it on the FME sever web interface and it works fine.

On FME server I can choose with the dropdown list which service I want to run the workspace with, to receive the email I have to use the JobSbmitter. But if I use the DataStreaming then I won't receive the email if the workspace fails. Similarly, when I call the workspace through a HTTP request if I use this endpoint:https://fmserverhost.fmecloud.com/fmedatastreaming/workspace.fmw?parameters I can get the JSON string on success but no email notification conversely, when I use the other endpoint:https://fmserverhost.fmecloud.com/fmejobsubmitter/workspace.fmw?parameters

 

I can get the email on fauiure but the JSON string is not streamed. Is there a way of having both services running at the same time for the same workspace?


1 reply

Userlevel 4

You can only run a workspace as a single service at a time.

If you need to trigger the notification when the fmedatastreaming service fails, you'll have to specify the failure topic when publishing the workspace:

Reply