Solved

Datadownload without writer

  • 14 March 2017
  • 6 replies
  • 0 views

Userlevel 1
Badge +17

How can I publish a workspace for datadownload without a writer. (I use a featurewriter or a systemcaller to write the final output.)

icon

Best answer by fmelizard 14 March 2017, 18:18

View original

6 replies

Userlevel 2
Badge +12

At this moment I do not think that is possible.

As a solution I used a FeatureReader to re-read the data and a writer to output the data.

Slows down the process a bit, but allows the Data Download service on FME Server.

Userlevel 1
Badge +17

At this moment I do not think that is possible.

As a solution I used a FeatureReader to re-read the data and a writer to output the data.

Slows down the process a bit, but allows the Data Download service on FME Server.

I thought about this solution but I can't see how it will solve my problem. I'am writing html with the HtmlReportgenerator. Then I use a systemcaller to use a third party tool to convert it to pdf. The resulting pdf should be the one offered to download. Any idea?
Userlevel 2
Badge +12

At this moment I do not think that is possible.

As a solution I used a FeatureReader to re-read the data and a writer to output the data.

Slows down the process a bit, but allows the Data Download service on FME Server.

I see the issue: No reader for PDF.

 

You could try the FileCopy Writer, but I do not know if that allows Data Download.

 

Is using Email (Emailer transformer) with the PDF as attachment an option?

 

 

Userlevel 3
Badge +13

That is a very good question. Currently we don't support the FeatureWriter as a source for the zip file content of the data download. That would make a good idea though:

https://knowledge.safe.com/content/idea/post.html?space=153

If you have the path to the file as an attribute, then the File Copy writer can copy the file and be used as the source for the zip file content of the data download. There is even a blog on it:

https://blog.safe.com/2013/07/fmeevangelist117/

and and article:

https://knowledge.safe.com/articles/881/including-additional-files-in-the-data-download-re.html

Badge +21

We write the FeatureWriter to a location that is known, and prepare the e-mail within the workspace itself and send it out to the correct e-mail adress. So one of the published parameters is: email:

  • FeatureWriter to write the data to the TEMP-catalogue of FME-server. Filename can be some fanout on UUID for instance. So it is accessible via a known URL + UUID.zip
  • FMEServerEmailGenerator to prepare the email
  • FMEServerNotifier to send the content created to FME Server.

Userlevel 1
Badge +17

That is a very good question. Currently we don't support the FeatureWriter as a source for the zip file content of the data download. That would make a good idea though:

https://knowledge.safe.com/content/idea/post.html?space=153

If you have the path to the file as an attribute, then the File Copy writer can copy the file and be used as the source for the zip file content of the data download. There is even a blog on it:

https://blog.safe.com/2013/07/fmeevangelist117/

and and article:

https://knowledge.safe.com/articles/881/including-additional-files-in-the-data-download-re.html

The File copy writer did the trick and I posted an idea!

 

 

Reply