Skip to main content
I have 10 shapefiles which I want to run through a workbench but I want to process each one at a time. The workbench has a workspace runner which feeds data to another process. I want to push each file through the process seperatly but not have to run the workbench 10 manual times with seperate shapefiles. 

 

 

I thought about the feature holder but I can't group them or parameterise them.

 

 

Thanks

 

Seb 
Hi Seb,

 

 

How about creating another workspace having a WorkspaceRunner to run the workspace?

 

You can pass a shape file path to the Source Dataset parameter of your workspace through the WorkspaceRunner. If you create an external table that contains the 10 shape file paths, you can read it and pass the file path string to the WorkspaceRunner one by one.

 

Set "Yes" to the Wait for Job Complete" parameter to wait the child process completion if necessary.

 

 

Takashi
You can also read the file/directories using the pathreader, put a counter on it and then feed them to a customtransformer in wich you put your main process. Iterate trough them using a index < counter (or <= depending on index startvalue)

 

basically you inernaly create:

 

_count   filename

 

1             file1

 

2            file2

 

etc.

 

 

to iterate trough the shapefiles.

Reply