Skip to main content
Solved

How do you specify a Notification Writer when publishing an FME workspace via the FME REST API?

  • November 26, 2014
  • 1 reply
  • 2 views

My workspace is run as a result of a directory watcher publication event. The event helpfully passes the JSON message about the location of the new file. I have the DirectoryWatcher reader in my workspace to read the JSON message.

 

 

When I publish to our FME Server 2014 using the wizard, I am able to specify which reader should be used to read in the notification event: this is on the Register Services screen, on the Notification Service line, clicking Edit..., there I can specify the Notification Reader. Similarly, I can specify the writer that will be used for the publish event (i.e. the Notification Writer).

 

 

In order to do automated deployment, I am using the FME Server REST API (v2). I am able to publish a workspace sucessfully using the API, as well as create topics and manage subscriptions. However, I cannot find a way of specifying which reader/writer should be used for receiving/sending the notification event message.

 

 

Is it possible to specify the Notification Reader or Notification Writer using the FME REST API?

Best answer by sigtill

To register a service, can you use the:

 

**/fmerest/v2/apidoc/#!/repositories/postRegisteredServices_post_51

 

 

Ie 

 

 

http://yourfmeserver/fmerest/v2/repositories/Samples/items/austinDownload.fmw/services?detail=low

 

 

And with the BODY:

 

services=myservice1&services=myservice2
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • Best Answer
  • January 19, 2015
To register a service, can you use the:

 

**/fmerest/v2/apidoc/#!/repositories/postRegisteredServices_post_51

 

 

Ie 

 

 

http://yourfmeserver/fmerest/v2/repositories/Samples/items/austinDownload.fmw/services?detail=low

 

 

And with the BODY:

 

services=myservice1&services=myservice2

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