Skip to content

NIFI-15739 Added Expression Language validation to ExecuteGroovyScript dynamic properties and a session.get() in the onTrigger method to ensure there is a FlowFile to send to failure.#11059

Open
dan-s1 wants to merge 1 commit intoapache:mainfrom
dan-s1:NIFI-15739

Conversation

@dan-s1
Copy link
Copy Markdown
Contributor

@dan-s1 dan-s1 commented Mar 27, 2026

Summary

NIFI-15739

  • Added Expression Language validation to the dynamic property creation in ExecuteGroovyScript to ensure users enter a valid Expression Language statement.
  • Added a session.get() to the ExecuteGroovyScript onTrigger method when the "transfer to failure" failure strategy is chosen in order to ensure there is a FlowFile to send to the failure relationship when an exception is thrown before the script is executed.
  • In ProcessSessionWrap, changed from session.commit() to session.commitAsync() in order to avoid a java.lang.RuntimeException thrown by MockProcessSession for using session.commit()`.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000
  • Pull request contains commits signed with a registered key indicating Verified status

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

…t dynamic properties and a session.get() in the onTrigger method to ensure there is a FlowFile to send to failure.
@dan-s1 dan-s1 added the bug label Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant