Skip to main content

DebugFlow

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

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
FlowFile Success Iterations *FlowFile Success Iterations1Number of FlowFiles to forward to success relationship.
FlowFile Failure Iterations *FlowFile Failure Iterations0Number of FlowFiles to forward to failure relationship.
FlowFile Rollback Iterations *FlowFile Rollback Iterations0Number of FlowFiles to roll back (without penalty).
FlowFile Rollback Yield Iterations *FlowFile Rollback Yield Iterations0Number of FlowFiles to roll back and yield.
FlowFile Rollback Penalty Iterations *FlowFile Rollback Penalty Iterations0Number of FlowFiles to roll back with penalty.
FlowFile Exception Iterations *FlowFile Exception Iterations0Number of FlowFiles to throw exception.
FlowFile Exception Class *FlowFile Exception Classjava.lang.RuntimeExceptionException class to be thrown (must extend java.lang.RuntimeException).
No FlowFile Skip Iterations *No FlowFile Skip Iterations1Number of times to skip onTrigger if no FlowFile.
No FlowFile Exception Iterations *No FlowFile Exception Iterations0Number of times to throw NPE exception if no FlowFile.
No FlowFile Yield Iterations *No FlowFile Yield Iterations0Number of times to yield if no FlowFile.
No FlowFile Exception Class *No FlowFile Exception Classjava.lang.RuntimeExceptionException class to be thrown if no FlowFile (must extend java.lang.RuntimeException).
Write Iterations *Write Iterations0Number of times to write to the FlowFile
Content Size *Content Size1 KBThe number of bytes to write each time that the FlowFile is written to
@OnScheduled Pause Time *@OnScheduled Pause Time0 secSpecifies 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
Fail When @OnScheduled called *Fail When @OnScheduled calledfalse
  • true
  • false
Specifies whether or not the Processor should throw an Exception when the methods annotated with @OnScheduled are called
@OnUnscheduled Pause Time *@OnUnscheduled Pause Time0 secSpecifies 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
Fail When @OnUnscheduled called *Fail When @OnUnscheduled calledfalse
  • true
  • false
Specifies whether or not the Processor should throw an Exception when the methods annotated with @OnUnscheduled are called
@OnStopped Pause Time *@OnStopped Pause Time0 secSpecifies how long the processor should sleep in the @OnStopped method, so that the processor can be forced to take a long time to shutdown

Supports Expression Language, using Environment variables.
Fail When @OnStopped called *Fail When @OnStopped calledfalse
  • true
  • false
Specifies whether or not the Processor should throw an Exception when the methods annotated with @OnStopped are called
OnTrigger Pause Time *OnTrigger Pause Time0 secSpecifies 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
CustomValidate Pause Time *CustomValidate Pause Time0 secSpecifies how long the processor should sleep in the customValidate() method
Ignore Interrupts When Paused *Ignore Interrupts When Pausedfalse
  • true
  • false
If 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.

Dynamic Properties

This component does not support dynamic properties.

Relationships

NameDescription
failureFlowFiles that failed to process.
successFlowFiles processed successfully.

Reads Attributes

This processor does not read attributes.

Writes Attributes

This processor does not write attributes.

State Management

This component does not store state.

Restricted

This component is not restricted.

Input Requirement

Input requirements are not specified for this component.

System Resource Considerations

This component does not specify system resource considerations.

See Also