Skip to main content

Olá a todos! Estou procurando informações mais detalhadas sobre espaços de trabalho dinâmicos, mas não encontrei muita documentação detalhada. Estou procurando dicas e práticas recomendadas para criar fluxos de trabalho dinâmicos no FME.

 

Tenho vários Shapefiles, cada um com atributos específicos. Todos eles passam por um processo padrão de limpeza de atributos e validação de geometria. Alguns também exigem processamento personalizado, além das etapas padrão.

 

Estou pensando em começar com o SchemaMapper, já que temos uma planilha interna do Excel que controla o mapeamento de nomes de atributos — acredito que essa seja uma boa prática.

 

Aqui estão minhas principais perguntas:

 

Qual é a melhor maneira de processar um shapefile por vez, executá-lo no fluxo de trabalho padrão e, então, usar um testador para direcioná-lo a um processo específico, se necessário?

 

É recomendável criar uma fila de processamento? Essa é uma prática recomendada?

 

Você recomendaria criar um espaço de trabalho dinâmico que manipulasse todos os shapefiles ou ter um espaço de trabalho por shapefile?

 

Alguém tem um modelo de fluxo de trabalho ou sugestões para esse tipo de configuração?

 

How to pass one shapefile at a time into the workspace

Hi ​@francisco_1988 

I suggest you look at using the WorkspaceRunner . This will help you process a list of files.

Test Batch Processing Method 3: Using the WorkspaceRunner – FME Support Center

WorkspaceRunner

Hope this helps!


Hi ​@francisco_1988 

I suggest you look at using the WorkspaceRunner . This will help you process a list of files.

Test Batch Processing Method 3: Using the WorkspaceRunner – FME Support Center

WorkspaceRunner

Hope this helps!

But I intend to have a single thread processing multiple files. By using Workspacerunner, I would be processing multiple files in different threads, right?


Hi ​@francisco_1988 Potentially yes. It is how you design the workspaces. You can have a workspace to read in shapefiles, process, then tester to call individual workspacerunners depending on results. Each workspacerunner can be set to process 1 at a time as well (below)

There are many ways of designing but the way you describe, read in shapefiles, perform a standard process, then do a custom process, I think this is an option to consider. Can you share a bit of your workspace? Might be able to get a better understanding. Hope that helps!
 

 


Hi ​@francisco_1988 Potentially yes. It is how you design the workspaces. You can have a workspace to read in shapefiles, process, then tester to call individual workspacerunners depending on results. Each workspacerunner can be set to process 1 at a time as well (below)

There are many ways of designing but the way you describe, read in shapefiles, perform a standard process, then do a custom process, I think this is an option to consider. Can you share a bit of your workspace? Might be able to get a better understanding. Hope that helps!
 

 

So I was thinking of creating everything together, both the flows for standard processing and for specific operations. Do you think that's feasible?


Reply