Solved

Sequence of output on ports on FeatureReader ?

  • 3 November 2021
  • 5 replies
  • 2 views

Userlevel 1
Badge +22

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 ?

icon

Best answer by jdh 3 November 2021, 20:14

View original

5 replies

Userlevel 6
Badge +32

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

Userlevel 1
Badge +22

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.

Userlevel 1
Badge +22

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

Plan B :-)

Badge +22

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

Userlevel 1
Badge +22

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

Excellent point.

Reply