FME Transformers: 2024.2

Categories
Calculated Values
Workflows

TempPathnameCreator

Reserves and returns a temporary file or folder path that will be deleted upon translation completion. An optional basename and extension can be supplied to further refine the filename portion of the resulting pathname.

This transformer is typically used in conjunction with the FeatureWriter or AttributeFileWriter in workflows that need a temporary file location that will live only for the duration of the translation. The files are then typically consumed downstream in the workflow by transformers like the Emailer or HTMLReportGenerator.

Pathnames

The resulting pathnames will look something like:

<FME temporary directory>/<process #s><TransformerName>_<uuid>/<basename><timestamp>_
<sequence #>.<extension>

For example, on Windows, the transformer will create a path that looks like this:

C:\temp\1457417_4341TempPathnameCreator_820b3a46_e4ee_11e5_8cb1_
a45e60c7b3170\base_4672334_0.ext

And on Linux/MacOS, the transformer will create a path that looks like this:

/tmp/1457414874617_4341TempPathnameCreator_820b3a46_e4ee_11e5_8cb1_
a45e60c7b3170/base_4672334_0.ext

The FME_TEMP environment variable can override the default location for temporary folders. See https://support.safe.com/hc/en-us/articles/25407446479373-Setting-a-temporary-file-location-for-FME-to-use-via-the-FME-TEMP-environment-variable for more details.

Each instance of this transformer will itself create a subfolder within the temporary folder in use, and return unique paths within that subfolder. This subfolder and its contents will be destroyed at the end of the translation, but before any END_PYTHON or END_TCL scripts are invoked.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the TempPathnameCreator on the FME Community.