DebugFlow 2025.10.9.21

Bundle

org.apache.nifi | nifi-standard-nar

Description

The DebugFlow processor aids testing and debugging the FlowFile framework by allowing various responses to be explicitly triggered in response to the receipt of a FlowFile or a timer event without a FlowFile if using timer or cron based scheduling. It can force responses needed to exercise or test various failure modes that can occur when a processor runs.

Tags

FlowFile, debug, flow, processor, test, utility

Input Requirement

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
@OnScheduled Pause TimeSpecifies how long the processor should sleep in the @OnScheduled method, so that the processor can be forced to take a long time to start up
@OnStopped Pause TimeSpecifies how long the processor should sleep in the @OnStopped method, so that the processor can be forced to take a long time to shutdown
@OnUnscheduled Pause TimeSpecifies how long the processor should sleep in the @OnUnscheduled method, so that the processor can be forced to take a long time to respond when user clicks stop
Content SizeThe number of bytes to write each time that the FlowFile is written to
CustomValidate Pause TimeSpecifies how long the processor should sleep in the customValidate() method
Fail When @OnScheduled calledSpecifies whether or not the Processor should throw an Exception when the methods annotated with @OnScheduled are called
Fail When @OnStopped calledSpecifies whether or not the Processor should throw an Exception when the methods annotated with @OnStopped are called
Fail When @OnUnscheduled calledSpecifies whether or not the Processor should throw an Exception when the methods annotated with @OnUnscheduled are called
FlowFile Exception ClassException class to be thrown (must extend java.lang. RuntimeException).
FlowFile Exception IterationsNumber of FlowFiles to throw exception.
FlowFile Failure IterationsNumber of FlowFiles to forward to failure relationship.
FlowFile Rollback IterationsNumber of FlowFiles to roll back (without penalty).
FlowFile Rollback Penalty IterationsNumber of FlowFiles to roll back with penalty.
FlowFile Rollback Yield IterationsNumber of FlowFiles to roll back and yield.
FlowFile Success IterationsNumber of FlowFiles to forward to success relationship.
Ignore Interrupts When PausedIf the Processor’s thread(s) are sleeping (due to one of the “Pause Time” properties above), and the thread is interrupted, this indicates whether the Processor should ignore the interrupt and continue sleeping or if it should allow itself to be interrupted.
No FlowFile Exception ClassException class to be thrown if no FlowFile (must extend java.lang. RuntimeException).
No FlowFile Exception IterationsNumber of times to throw NPE exception if no FlowFile.
No FlowFile Skip IterationsNumber of times to skip onTrigger if no FlowFile.
No FlowFile Yield IterationsNumber of times to yield if no FlowFile.
OnTrigger Pause TimeSpecifies how long the processor should sleep in the onTrigger() method, so that the processor can be forced to take a long time to perform its task
Write IterationsNumber of times to write to the FlowFile

Relationships

NameDescription
failureFlowFiles that failed to process.
successFlowFiles processed successfully.