[ https://issues.apache.org/jira/browse/NIFI-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15308216#comment-15308216 ]
ASF GitHub Bot commented on NIFI-1829: -------------------------------------- Github user trkurc commented on a diff in the pull request: https://github.com/apache/nifi/pull/458#discussion_r65230520 --- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/DebugFlow.java --- @@ -0,0 +1,414 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nifi.processors.standard; + +import org.apache.nifi.annotation.behavior.EventDriven; +import org.apache.nifi.components.PropertyDescriptor; +import org.apache.nifi.flowfile.FlowFile; +import org.apache.nifi.flowfile.attributes.CoreAttributes; +import org.apache.nifi.logging.ProcessorLog; +import org.apache.nifi.annotation.lifecycle.OnScheduled; +import org.apache.nifi.annotation.documentation.CapabilityDescription; +import org.apache.nifi.annotation.documentation.Tags; +import org.apache.nifi.processor.AbstractProcessor; +import org.apache.nifi.processor.ProcessContext; +import org.apache.nifi.processor.ProcessSession; +import org.apache.nifi.processor.Relationship; +import org.apache.nifi.processor.exception.ProcessException; +import org.apache.nifi.processor.util.StandardValidators; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +@EventDriven() +@Tags({"test", "debug", "processor", "utility", "flow", "flowfile"}) +@CapabilityDescription("This processor aids in the testing and debugging of the flowfile framework by allowing " + + "a developer or flow manager to force various responses to a flowfile. In response to a receiving a flowfile " + + "it can route to the success or failure relationships, rollback, rollback and yield, rollback with penalty, " + + "or throw an exception. In addition, if using a timer based scheduling strategy, upon being triggered without " + + "a flowfile, it can be configured to throw an exception, when triggered without a flowfile.\n" --- End diff -- I think the last "when triggered ..." is redundant > Create FlowDebugger processor > ----------------------------- > > Key: NIFI-1829 > URL: https://issues.apache.org/jira/browse/NIFI-1829 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Joe Skora > Assignee: Joe Skora > Priority: Minor > Fix For: 1.0.0, 0.7.0 > > > The FlowDebugger processor allows a variety of Processor responses and > failures to be simulated for testing, debugging, and troubleshooting the > framework. > Responses it can produce on receipt of a flowfile include Transfer to > Success, Transfer to Failure, Rollback without Penalty, Rollback and Yield, > Rollback with Penalty, and Throw an Exception. The properties indicate how > many times that response should be thrown, for example if configured with > Success=10 and Failure=40, it will transfer the first 10 flowfiles to > Success, transfer the next 40 to Failure, and then repeat. > Similarly, responses it can produce when triggered without a flowfile include > Throw an Exception, Yield, and Return (do nothing). -- This message was sent by Atlassian JIRA (v6.3.4#6332)