Skip to main content
Solved

Sequence of output on ports on FeatureReader ?

  • November 3, 2021
  • 5 replies
  • 19 views

lifalin2016
Supporter
Forum|alt.badge.img+38

A FeatureReader typically outputs data features on defined data ports, plus the "<Schema>" and "<Initiator>" ports.

I know that "<Schema>" features gets output before any data features (from that schema), but what about "<Initiator>" ?

Does this feature get output at the very end, i.e. after all data (for this initiator) has been output ?

If not, is there a way to initiate a downstream transformer _after_ all data has been output ?

Best answer by jdh

The initiator is output last, that's the only way it can have a valid _matched_records attribute.

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.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2938 replies
  • November 3, 2021

The way I do this is by putting all features through a Sampler and set it to last 1.


lifalin2016
Supporter
Forum|alt.badge.img+38
  • Author
  • Supporter
  • 592 replies
  • November 3, 2021

I tried and attached loggers to the "<Initiator>" port and all data ports.

It does seem, that the "initiator" feature is logged last, although this is only determined by its position in the log, not the (identical) timestamps.


lifalin2016
Supporter
Forum|alt.badge.img+38
  • Author
  • Supporter
  • 592 replies
  • November 3, 2021

The way I do this is by putting all features through a Sampler and set it to last 1.

Plan B :-)


jdh
Contributor
Forum|alt.badge.img+37
  • Contributor
  • 2002 replies
  • Best Answer
  • November 3, 2021

The initiator is output last, that's the only way it can have a valid _matched_records attribute.


lifalin2016
Supporter
Forum|alt.badge.img+38
  • Author
  • Supporter
  • 592 replies
  • November 4, 2021

The initiator is output last, that's the only way it can have a valid _matched_records attribute.

Excellent point.