Skip to main content
Question

Add/edit multiple feature types/transformers/connections in a workbench workspace ?

  • May 4, 2017
  • 3 replies
  • 234 views

lifalin2016
Supporter
Forum|alt.badge.img+40

Hi,

Occasionally I need to convert multiple input sources to multiple outputs. I of course use the "generate" option for this to get started.

But if I later find, that the many individual connections each need a new (and identical) transformer inserted (e.g. AttributeCreator), how do I do that in an easy way (i.e. without having to add the transformer manually to each connection which is tedious even with copy'n'paste) ?

2016 inserts a single transformer on one of multiple selected connection, whereas 2017 collects all selected connections as joint inputs to a single transformer. So someone has been looking into this.

Another similar situation:

I again have a lot of auto-generated SQL Server output feature types, and want to change the table handling in each from the default "Create If necessary" to "Drop and Create", and also want to change the attribute handling to "Automatic" on each.

How do I do that without having to do it manually many times over (or hacking into the FMW file with a text editor, which is my current work-around) ?

Any good tips ?

Cheers

Lars I.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • May 4, 2017

Hi @lifalin2016

Yes, create a parameter in one writer feature type and in the navigator window right click on the parameter and select apply to...now just filter out the ones you need (they will all have the same name) and select and apply, voila you have just applied the parameter to several locations in one go.

See the last section under Modifying User Parameters:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/parameters-create-modify.htm?Highlight=parameter

About your first question see if you can use an AttributeManager with a conditional value in combination with a dynamic translation.

Hope this helps.


takashi
Celebrity
  • May 4, 2017

Hi @lifalin2016, about applying the same parameter(s) configuration to multiple writer feature types, you can also use the "Apply to" functionality on write feature types.

Once you have configured the writer feature type parameters, click [Apply to] button in the writer feature type to open the Change Multiple Feature Types dialog,

  • Feature Types to Change: Select feature types to which the same parameter(s) configuration should be applied.
  • Parameters to change: Select parameter(s) to be applied.

Then, close the dialog and the writer feature type with [OK].


lifalin2016
Supporter
Forum|alt.badge.img+40
  • Author
  • Supporter
  • May 4, 2017

Hi @lifalin2016

Yes, create a parameter in one writer feature type and in the navigator window right click on the parameter and select apply to...now just filter out the ones you need (they will all have the same name) and select and apply, voila you have just applied the parameter to several locations in one go.

See the last section under Modifying User Parameters:

https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/Workbench/parameters-create-modify.htm?Highlight=parameter

About your first question see if you can use an AttributeManager with a conditional value in combination with a dynamic translation.

Hope this helps.

Hi itay.

 

Alas, combining the many connections thru a single transformer is not an option, since this would also sum all attributes from all input sources.

 

Each connection needs its very own instance of the transformer in question.