Skip to main content
Solved

Datadownload without writer


stalknecht
Contributor
Forum|alt.badge.img+19

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

View original

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • 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+19
erik_jan wrote:

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+17
  • Contributor
  • March 14, 2017
erik_jan wrote:

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
Contributor
Forum|alt.badge.img+16
  • Contributor
  • 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
Contributor
Forum|alt.badge.img+24
  • Contributor
  • 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+19
fmelizard wrote:

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


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