onyx-examples icon indicating copy to clipboard operation
onyx-examples copied to clipboard

Trigger emit example

Open iivalchev opened this issue 7 years ago • 2 comments

It would be great to have an example of a trigger that emits segments when fired. Think the aggregation example could be extended to have that.

iivalchev avatar Apr 19 '17 10:04 iivalchev

I'm really interested in this. But perhaps an explanation here would help too: when it says they're emitted downstream, how does one control that, e.g. via flow conditions? Are they emitted as segments of the task the trigger is related to? Something else?

neverfox avatar Jan 12 '18 02:01 neverfox

Yes, they are subject to flow conditions. Hopefully I’ll get around to the example soon (though we’d love to merge a PR from you).

If you wish to excuse the regular segments, you can use the new onyx/type :reduce.

On 11 Jan 2018, at 18:35, Roman Pearah [email protected] wrote:

I'm really interested in this. But perhaps an explanation here would help too: when it says they're emitted downstream, how does one control that, e.g. via flow conditions? Are they emitted as segments of the task the trigger is related to? Something else?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lbradstreet avatar Jan 12 '18 02:01 lbradstreet