Skip to main content
Question

Run FEATUREREADER only if records pass testers but don't pass records to FEATUREREADER.

  • April 7, 2021
  • 2 replies
  • 47 views

Forum|alt.badge.img

I want to trigger a FEATUREREADER to run only if there are records that pass a tester. But I don't want to pass all the records to the FEATUREREADER, only trigger the reader to start. The passed tester records will be used in a different transformer but I also want to trigger the reader to start if there are any records that pass the tester. What is the best way to accomplish this?

 

Thanks,

 

David

2 replies

takashi
Celebrity
  • 7843 replies
  • April 7, 2021

Hi @dkirouac​ , you can use the Sampler to pick the first (or the last) one feature in the passed features then kick the FeatureReader.

 

  • Sampling Rate: 1
  • Sampling Type: First N Features

Forum|alt.badge.img
  • Author
  • 34 replies
  • April 7, 2021

Hi @dkirouac​ , you can use the Sampler to pick the first (or the last) one feature in the passed features then kick the FeatureReader.

 

  • Sampling Rate: 1
  • Sampling Type: First N Features

Thank you takashi. I will give it try.