Skip to content

Commit 239ff56

Browse files
committed
NIFI-14218: Added Stateful annotation to ExecuteGroovyScript
1 parent fd34468 commit 239ff56

File tree

1 file changed

+4
-0
lines changed
  • nifi-extension-bundles/nifi-groovyx-bundle/nifi-groovyx-processors/src/main/java/org/apache/nifi/processors/groovyx

1 file changed

+4
-0
lines changed

nifi-extension-bundles/nifi-groovyx-bundle/nifi-groovyx-processors/src/main/java/org/apache/nifi/processors/groovyx/ExecuteGroovyScript.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.apache.nifi.annotation.behavior.InputRequirement;
3434
import org.apache.nifi.annotation.behavior.Restricted;
3535
import org.apache.nifi.annotation.behavior.Restriction;
36+
import org.apache.nifi.annotation.behavior.Stateful;
3637
import org.apache.nifi.annotation.documentation.CapabilityDescription;
3738
import org.apache.nifi.annotation.documentation.SeeAlso;
3839
import org.apache.nifi.annotation.documentation.Tags;
@@ -45,6 +46,7 @@
4546
import org.apache.nifi.components.ValidationResult;
4647
import org.apache.nifi.components.resource.ResourceCardinality;
4748
import org.apache.nifi.components.resource.ResourceType;
49+
import org.apache.nifi.components.state.Scope;
4850
import org.apache.nifi.controller.ControllerService;
4951
import org.apache.nifi.dbcp.DBCPService;
5052
import org.apache.nifi.expression.ExpressionLanguageScope;
@@ -76,6 +78,8 @@
7678
explanation = "Provides operator the ability to execute arbitrary code assuming all permissions that NiFi has.")
7779
}
7880
)
81+
@Stateful(scopes = {Scope.LOCAL, Scope.CLUSTER},
82+
description = "Scripts can store and retrieve state using the State Management APIs. Consult the State Manager section of the Developer's Guide for more details.")
7983
@SeeAlso(classNames = {"org.apache.nifi.processors.script.ExecuteScript"})
8084
@DynamicProperty(name = "A script engine property to update",
8185
value = "The value to set it to",

0 commit comments

Comments
 (0)