Skip to content

Commit 6e409a3

Browse files
committed
NIFI-14497: Restore support for ExpressionLanguageScope to InvokeScriptedProcessor
1 parent 0fde8be commit 6e409a3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
<groupId>org.apache.nifi</groupId>
6262
<artifactId>nifi-record-sink-api</artifactId>
6363
</dependency>
64+
<dependency>
65+
<groupId>org.apache.nifi</groupId>
66+
<artifactId>nifi-extension-manifest-model</artifactId>
67+
<version>2.4.0-SNAPSHOT</version>
68+
</dependency>
6469
<dependency>
6570
<groupId>org.apache.ivy</groupId>
6671
<artifactId>ivy</artifactId>

nifi-extension-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/test/resources/groovy/test_reader.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17+
import org.apache.nifi.expression.ExpressionLanguageScope
18+
1719
class GroovyProcessor implements Processor {
1820

1921
def REL_TEST = new Relationship.Builder()
@@ -22,7 +24,10 @@ class GroovyProcessor implements Processor {
2224
.build();
2325

2426
def descriptor = new PropertyDescriptor.Builder()
25-
.name("test-attribute").addValidator(StandardValidators.NON_EMPTY_VALIDATOR).build()
27+
.name("test-attribute")
28+
.addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
29+
.expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
30+
.build()
2631

2732
def logger
2833

0 commit comments

Comments
 (0)