You are here: Workflows > ParameterFetcher.

ParameterFetcher.

Adds an attribute to the feature, supplying it the value of a previously published parameter.

A parameter is a setting that you can pass values into when a translation is run. Parameters usually relate to a setting on a reader or transformer. The ParameterFetcher can be used to copy the value of one or more parameters to a corresponding number of attributes. The number of rows specified in the configuration dialog determine the number of exposed output attributes.

Parameters

Example

This example describes a single parameter but you can fetch multiple parameters.

TheCreator如下所示的变压器具有称为已发布的参数数字。要发布此参数,请放置Creatortransformer in the workspace. Then right-click on Number to Create and select Create Parameter.

该对话框显示已发布的参数属性,默认值更改为10:

Choose the数字参数名称字段中的参数,然后键入目标属性result

When the workspace is run, the ParameterFetcher fetches the value assigned to the "NUM" parameter and stores it in the "result" attribute. Now the feature has an attribute "result" which holds the value of the "NUM" parameter.

You can see the attribute and its value in the FME Universal Viewer.

笔记:有关已发布参数的更多信息,请参阅Workbench帮助主题添加参数。

编辑变换器参数

使用一组菜单选项,可以通过引用工作区中的其他元素来分配变压器参数。一些变压器也可提供更高级的功能,例如高级编辑器和算术编辑器。要访问这些选项的菜单,请单击除适用的参数旁边。有关更多信息,请参阅变换器参数菜单选项

变压器类别

网页

Workflows

搜索FME知识中心

搜索有关此变压器的样本和信息FME Knowledge Center