Skip to main content
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?
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.

Reply