Skip to main content
Solved

Possible to make reading a reader's features dependent on another reader having features?

  • December 5, 2017
  • 2 replies
  • 15 views

Forum|alt.badge.img

My workspace has two readers - Oracle and Postgres. Sometimes the Oracle reader feature has records and sometimes it doesn't. I'd like for the Postgres Reader feature to be read only when the Oracle reader feature has records - i.e. to be dependent on there being records in the Oracle reader feature. Is this possible to do?

Best answer by 1spatialmary

@ieukcoca - take a look at the FeatureReader transformer. You could use that to read your Postgres data, and use a feature from your oracle data to initiate it (enter the initiator port). Don't forget though you only want one feature to pass in to the initiator port, else you will read the data multiple times (once for each feature entered), so use something like a Sampler transformer to filter off just one of your oracle features first. If no features are read from your oracle reader, then the FeatureReader never gets initiated/used.

capture.png

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

Forum|alt.badge.img+1
  • Best Answer
  • December 5, 2017

@ieukcoca - take a look at the FeatureReader transformer. You could use that to read your Postgres data, and use a feature from your oracle data to initiate it (enter the initiator port). Don't forget though you only want one feature to pass in to the initiator port, else you will read the data multiple times (once for each feature entered), so use something like a Sampler transformer to filter off just one of your oracle features first. If no features are read from your oracle reader, then the FeatureReader never gets initiated/used.

capture.png


Forum|alt.badge.img
  • Author
  • December 5, 2017

@ieukcoca - take a look at the FeatureReader transformer. You could use that to read your Postgres data, and use a feature from your oracle data to initiate it (enter the initiator port). Don't forget though you only want one feature to pass in to the initiator port, else you will read the data multiple times (once for each feature entered), so use something like a Sampler transformer to filter off just one of your oracle features first. If no features are read from your oracle reader, then the FeatureReader never gets initiated/used.

capture.png

Thanks. That sounds promising. I'll check it out.