Skip to main content
Question

How to get Notifications working with REST API

  • February 24, 2015
  • 0 replies
  • 3 views

sigtill
Supporter
Forum|alt.badge.img+24
Using this REST-call

 

 

http://fmeserver/fmerest/v2/transformations/commands/submit/Samples/austinDownload.fmw?detail=high

 

 

With these parameters

 

{ "FMEDirectives": {}, "NMDirectives": { "failureTopics": [], "successTopics": [] }, "TMDirectives": { "rtc": false, "ttl": 120, "description": "This is my description", "priority": 5, "tag": "linux" }, "publishedParameters": [ { "name": "MAXY", "value": "42" }, { "name": "THEMES", "value": [ "airports", "cenart" ] } ], "subsection": "REST_SERVICE" }

 

 

And adding the services to notify:

 

    "NMDirectives": {

 

        "successTopics": [

 

            "MYTOPIC_OK"

 

        ],

 

        "failureTopics": [

 

            "MYTOPIC_CALLED"

 

        ]

 

    }, 

 

 

and even trying to set it "manually"

 

 

    "FMEDirectives": {

 

        "TEXTLINE_1_DATASET": "!FME_AUTO_DIR_NAME!_nw\\\\textline.txt"

 

    }, 

 

 

It does not seem to be able to write a textfile to send to the notification.

 

 

Any help from Safe or users regarding this?

 

 

I would expect it to be able to send the text_line_data to the notification - however it seems the output-directory/file for the TEXTFILE writer does not get set when using the RESTAPI and no file is created. When you use the JOBSUBMITTER it works as expected and the text_line_data is generated properly. 

 

 

0 replies

Be the first to reply!

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