Pseudo Variables
There are a number ofpseudo-variables您可以在内部指定global_section.和SUB_SECTIONdefinitions.
Pseudo-variables act as placeholders that are replaced at translation time with the appropriate values, as described in the following table. Pseudo-variable names are always enclosed within exclamation marks.
Pseudo-variables are used to customize the behavior of the FME Engine for the following purposes:
- to assist with creating files and directories
- to incorporate specific information in response messages
可以指定的伪变量在下表中介绍。
Pseudo-Variable Name |
Replacement Value Description |
!FME_AUTO_FILE_NAME! |
这个伪变量表示的文件路径是由此指定的路径fme_working_dir.global directive plus the unique filename appended to it. The filename itself is generated before the translation so that multiple references to!FME_AUTO_FILE_NAME!will identify the same file throughout a single translation. |
!FME_AUTO_FILE_NAME_SIMPLE! |
唯一的文件名组件!FME_AUTO_FILE_NAME!file path. |
!FME_AUTO_DIR_NAME! |
A directory path value with an auto-generated final directory component whose name is guaranteed to be unique. The directory path represented by this pseudo-variable is the path specified by thefme_working_dir.global directive plus the final unique directory name appended to it. The final directory name itself is generated before the translation so that multiple references to!FME_AUTO_DIR_NAME!identify the same directory throughout a single translation. |
!fme_auto_dir_name_simple! |
The name of the unique final directory component in the!FME_AUTO_DIR_NAME!directory path. |
!fme_error_msg! |
包含翻译失败的原因的错误消息的内容。 此值无法使用PRE_COMMANDS. |
!FME_ERROR_NUMBER! |
The FME Engine internal error number associated with the error message that’s returned. |
!fme_instance_name! |
The name of the FME Engine instance as configured with a givenfmeEngineConfig.txt文件。 FME Engine instance names are usually assigned in the Engine startup commands, which are defined in the processMonitorConfigEngines.txt file. The user-definable names typically reflect site-specific usage aspects of the FME Engine that’s started. |
!FME_NUM_FEATURES_OUTPUT! |
翻译输出中的功能数。 |
!fme_result_lifetime! |
分配给的值fme_result_lifetime.global directive. |
!fmeMacroName! |
分配给的值named FME macro. A pseudo-variable with the same name as the macro name can access the value of any macro defined to the FME Engine during translation. Macros are defined to the FME Engine for a translation in one of the following three ways:
|