Skip to main content

Hello there!

 

I have a problem with the definition of Published Parameters.

 

Using Customized Transformers when I define a Published Parameter to the type "Attribute name", creating a new attribute and having that as output, I have the Attribute name as output and not the Attribute Value. I would like the Attribute Value as output.

 

When I change the definition of the Published Parameter to the type "Text" and fill in the textstring "@Value(name_of_the_attribute)" I do receive the Attribute Value as output.

 

In the attachment you find two files.

 

In one you can see the results of the settings from the configuration menu. Please take into account only "Foutmelding" and "Fouttype". "Foutmelding" makes use of the above described textstring while "Fouttype" makes use of the type attribute name-setting.

In the other you can see the output seen from the FME Data Inspector. As can be seen the attribute "Foutmelding" gets its attribute value through while the attribute "Fouttype" gets the attribute name through.

 

What goes wrong here? And what could I do to have the Attribute Value through? Although the textstring brings a workaround it is not very user friendly when authoring FME Workspaces.

 

Best Regards,

 

Jochgem

If you use the Attribute Name type, you can use an AttributeDereferencer inside the transformer to retrieve the value of the specified attribute name.


Hi David,

 

Thanks for the suggestion!

 

I did not work though. For completeness sake I attach the FME Workspace as well (including the Customized Transformers). The FME Workspace has been authored in FME Desktop 2019.2. Here the original FME Workspace has been altered using an AttributeDereferencer.

 

Within the Workspace Data Inspectors give insight into the problem.

 

I hope you or anyone else could have a look into the problem.

 

Best, Jochgem


Hi all,

 

I am not sure what went wrong, but I guess I may have misread the configuration screen.

 

Just set "Assignment Assignment" for a Type "Text" Published Parameter, set the Published Parameter to the attribute (name) and the values of the attribute come through.

 

Best, Jochgem


Reply