Github user mattyb149 commented on a diff in the pull request: https://github.com/apache/nifi/pull/1662#discussion_r124117117 --- Diff: nifi-nar-bundles/nifi-groovyx-bundle/nifi-groovyx-processors/src/main/java/org/apache/nifi/processors/groovyx/ExecuteGroovyScript.java --- @@ -0,0 +1,468 @@ +/* + * 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.groovyx; + +import java.io.File; +import java.lang.reflect.Method; +import java.sql.SQLException; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import org.apache.nifi.annotation.behavior.Restricted; +import org.apache.nifi.annotation.behavior.DynamicProperty; +import org.apache.nifi.annotation.behavior.EventDriven; +import org.apache.nifi.annotation.documentation.CapabilityDescription; +import org.apache.nifi.annotation.documentation.SeeAlso; +import org.apache.nifi.annotation.documentation.Tags; +import org.apache.nifi.annotation.lifecycle.OnScheduled; +import org.apache.nifi.annotation.lifecycle.OnStopped; +import org.apache.nifi.components.PropertyDescriptor; +import org.apache.nifi.controller.ControllerService; +import org.apache.nifi.dbcp.DBCPService; +import org.apache.nifi.flowfile.FlowFile; +import org.apache.nifi.processor.AbstractProcessor; +import org.apache.nifi.processor.ProcessContext; +import org.apache.nifi.processor.ProcessSession; +import org.apache.nifi.processor.ProcessorInitializationContext; +import org.apache.nifi.processor.Relationship; +import org.apache.nifi.processor.exception.ProcessException; +import org.apache.nifi.processor.util.StandardValidators; +import org.codehaus.groovy.control.CompilerConfiguration; +import org.codehaus.groovy.runtime.ResourceGroovyMethods; +import org.codehaus.groovy.runtime.StackTraceUtils; + +import org.apache.nifi.processors.groovyx.sql.OSql; +import org.apache.nifi.processors.groovyx.util.Files; +import org.apache.nifi.processors.groovyx.util.Validators; +import org.apache.nifi.processors.groovyx.flow.GroovyProcessSessionWrap; + +import groovy.lang.GroovyShell; +import groovy.lang.Script; + +import org.apache.nifi.components.ValidationResult; +import org.apache.nifi.components.ValidationContext; + +@EventDriven +@Tags({"script", "groovy", "groovyx"}) +@CapabilityDescription( + "Experimental Extended Groovy script processor. The script is responsible for " + + "handling the incoming flow file (transfer to SUCCESS or remove, e.g.) as well as any flow files created by " + + "the script. If the handling is incomplete or incorrect, the session will be rolled back.") +@Restricted("Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has.") +@SeeAlso({}) --- End diff -- If you are not referring to other processors/classes, you can remove the SeeAlso annotation. Alternatively if you want to refer to a processor in another NAR (such as ExecuteScript), you could do the following: `@SeeAlso({classNames="org.apache.nifi.processors.script.ExecuteScript"})`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---