I have a workflow involving three readers (Reader 1, Reader 2, and Reader 3), and I need help setting up conditional logic based on feature counts for a given ID.
Here's what I'm trying to achieve:
-
All three readers are filtered by the same ID.
-
Condition 1:
- If both Reader 1 and Reader 2 have at least one feature for the given ID, then do nothing—no features should be written to the writer.
-
Condition 2:
- If Reader 1 has at least one feature, but Reader 2 has zero features for the given ID, then:
- Write the feature from Reader 3 that matches the given ID to the writer.
- If Reader 1 has at least one feature, but Reader 2 has zero features for the given ID, then:
I'm looking for the best way to implement this logic in FME.
Thanks for any advice or examples!