Select to view content in your preferred language

CREATING DYNAMIC READERS/WRITERS

134
1
07-11-2024 08:08 AM
EDUARDOARDILARINCON
New Contributor III

Hi Everyone! I'm exploring the FME Workbench and trying to make son custom tools, but I need those tools to be dynamic. As an exlample: let's suppose I neet to import various shapefiles into a geodatabase, but every time that I run the tool I need to be able to select the shapefiles and the destination of the gdb.

Making a comparison, what I need is the same as setting a parameter in the ModelBuilder.

Thank you all!

0 Kudos
1 Reply
RenatoSalvaleon3
Esri Contributor

To select the shapefiles at runtime, you should design your workspace to have a File/Folder parameter. See this article - https://support.safe.com/hc/en-us/articles/26633456986637-Published-Parameters-in-FME-Form

For dynamic writing with geodatabases, there are multiple ways; you can use attributes as names (no run time interaction with this) or use  parameters for your destination filegeodatabase or its feature types (AKA feature classes), as well. This is an article that will show you how to use date attributes as names of output files or features - https://support.safe.com/hc/en-us/articles/25407603257997-Including-Dates-into-the-Names-of-Output-F...

Type of format matters, whether its file based or folder baed like geodatabases.

Note that when using the term Dynamic Workflows in the Workbench app, it is a more advanced technique thannnnn what you are asking and it usually involves schema setting/mapping. It doesn't sound like that it is your question.

Ask if you have additional questions. BTW, I'm moving this question to the Data Interoperabiliy place Since your question is more specific to the features of the product. Thanks!