Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-7176 added InvokeHTTP support parametric READ.TIMEOUT and CONNEC… #4131

Closed
wants to merge 1 commit into from
Closed

NIFI-7176 added InvokeHTTP support parametric READ.TIMEOUT and CONNEC… #4131

wants to merge 1 commit into from

Conversation

guvencenanguvenal
Copy link

InvokeHTTP support evaluate expression for timeout parameters. NIFI-7126

Copy link
Contributor

@pvillard31 pvillard31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @guvencenanguvenal for the pull request.
The EL cannot be evaluated against flow files attributes since it's happening during the processor initialisation. Instead, you need to use the VARIABLE_REGISTRY scope.

@@ -182,6 +182,7 @@
.name("Connection Timeout")
.description("Max wait time for connection to remote service.")
.required(true)
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)

@@ -190,6 +191,7 @@
.name("Read Timeout")
.description("Max wait time for response from remote service.")
.required(true)
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)

@guvencenanguvenal
Copy link
Author

I use Apache Nifi for so long time but I am new on Apache Nifi source code. Thanks your edited but i want to read flowfile attribute so i close PR :) i will work on it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants