Data must be sent to channel (PutEmail, PutFile, PutSFTP,etc)
In case of channel failure we should retry to send again 3 times before
giving up.

How to achieve this?

One possibility is to create custom router RouterRetry which will examine
FlowFile certain attribute FailedCount to check how many times this FlowFile
sending is failed.
RouterRetry has 2 relationships REL_DOWORK, REL_FAILURE

It seems another processor IncFailedCount is needed. Its only task is to set
FailedCount attribute or to increment it.

Let's connect channel to  RouterRetry  REL_DOWORK and channel REL_FAILURE to 
IncFailedCount. 
And  IncFailedCount relationship back to RouterRetry.

Now  RouterRetry can decide whetever to send  FlowFile to  REL_DOWORK 
or to REL_FAILURE when all retries failed.

Is this reasonable?
Any other (simpler) way?

Thanks
toivo




--
View this message in context: 
http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/Route-Based-on-Result-tp692.html
Sent from the Apache NiFi (incubating) Developer List mailing list archive at 
Nabble.com.

Reply via email to