Skip to main content
Question

Dynamic reader locations and looping

  • September 4, 2020
  • 1 reply
  • 34 views

brennanfuchs

Day one in FME... Coming from an SSIS background.

What would be the approach to dynamically set a reader location based on the results from a transformation? I'd like to take the Joined results I have and for each filepath start a whole new batch of work. The readers have me stumped as I'm used to being able to set the source locations using an expression. I can see I'm not able to add a reader in a custom loop. Just looking for a push in the right direction. (see below).

 

Capture

Could be I need to re-wire my brain for FME use too!

1 reply

ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • September 4, 2020

You could take a look at the FeatureReader, this will allow you to use information from the first part of your translation as a source file location.

The workspace runner is another option, this will run a second workspace for each feature sent into it. If the second workspace has a parameter that controls the source file location you can set this in the workspace runner from the output of your starting workspace.

https://community.safe.com/s/article/batch-processing-using-the-workspacerunner-1


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings