Skip to main content
Solved

FME_SERVER_DEST_DIR

  • January 17, 2014
  • 1 reply
  • 80 views

tino
Contributor
Forum|alt.badge.img+17
  • Contributor
Hi,

 

 

i just noticed that if i have more than one writer in my workspace and choose only the output of one for the DataDownload- or DataStreaming-Service only this output gets written to FME_SERVER_DEST_DIR. The other writers write their output to the default, in the workspace file configured path.

 

How do I avoid conflicting file access with concurrent user session for such a workspace?

 

I need a unique filepath for a temporary file in my workspace which should not be included in the download/streaming output. I could use a private python parameter which generates a filename (e.g. with a timestamp) or i could perhaps utilize the UUIDGenerator to achive unique filenames...

 

Or I could use the FME_SERVER_DEST_DIR parameter and extract the unique part of it to use it e.g. in %TEMP%.

 

 

But perhaps FME Server has some variable/function i could use directly?

Best answer by kathyross

I'd recommend a combination of a Timestamper and RandomNumberGenerator transformer for forward compatibility purposes in case in future FME Server releases the variable / function (if such exists) changes name.
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

Forum|alt.badge.img+4
  • Best Answer
  • February 3, 2014
I'd recommend a combination of a Timestamper and RandomNumberGenerator transformer for forward compatibility purposes in case in future FME Server releases the variable / function (if such exists) changes name.

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