Skip to main content
Solved

Datadownload without writer

  • March 14, 2017
  • 6 replies
  • 64 views

stalknecht
Contributor
Forum|alt.badge.img+21

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

Best answer by fmelizard

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, 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.

6 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • March 14, 2017

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.


stalknecht
Contributor
Forum|alt.badge.img+21
  • Author
  • Contributor
  • 305 replies
  • March 14, 2017

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?

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • March 14, 2017

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?

 

 


fmelizard
Safer
Forum|alt.badge.img+20
  • Safer
  • 3719 replies
  • Best Answer
  • March 14, 2017

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


sigtill
Supporter
Forum|alt.badge.img+25
  • Supporter
  • 956 replies
  • March 14, 2017

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.


stalknecht
Contributor
Forum|alt.badge.img+21
  • Author
  • Contributor
  • 305 replies
  • March 15, 2017

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!