Hey Peter,

What about ExecuteScript with few Groovy lines?

flowFile = session.get()
if(!flowFile) return
session.penalize(flowFile)
session.transfer(flowFile, REL_SUCCESS)

Pierre



Le lun. 15 oct. 2018 à 22:10, Peter Wicks (pwicks) <[email protected]> a
écrit :

> A coworker and I were working on a problem where we needed to delay a
> group of FlowFile’s for 60 minutes. Our first attempt of course used
> ControlRate, but with ControlRate the first file is let through
> immediately, and only after that are the rest of the files delayed.
>
>
>
> We got it working by using FlowFile penalization on a broken PutFile
> processor to penalize all files for 60 minutes, and all files fail due to
> the bad config. In testing this looks good, but… well it’s pretty ugly. Is
> there an easy fix for this? My first thought was we need a “Delay”
> processor.
>
>
>
> --Peter
>

Reply via email to