Re: GetHTTP processor error

2015-12-15 Thread Joe Percivall
I think you're thinking about it the wrong way. You aren't actually using any attributes (attributes are on flowfiles, properties on processors), just utilizing the functions of expression language. So you can manually put in everything you would normally as a literal then reference the

Re: GetHTTP processor error

2015-12-15 Thread Igor Kravzov
Hi Joe, Another quick question. How can I encode some part of the URL? Like in example bellow after searchpattern= space between Matt Dupe needs to be encoded.

Re: GetHTTP processor error

2015-12-15 Thread Joe Percivall
Hello Igor, The URL property for GetHTTP supports expression language. Check out this function: https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#urlencode Hope that helps, Joe - - - - - - Joseph Percivall linkedin.com/in/Percivall e: joeperciv...@yahoo.com On

Re: GetHTTP processor error

2015-12-15 Thread Igor Kravzov
Guys, I think I get it. Is this how it should be? http://api.twingly.com/analytics/Analytics.ashx?key=75744154-6ACB-3340-937A-9B5A59FA8F30=${literal('Matt Dupe'):urlEncode()}=2=${now():minus(60):format("-MM-dd HH:mm:ss")}=${now():format("-MM-dd HH:mm:ss")} On Tue, Dec 15, 2015 at

Re: GetHTTP processor error

2015-12-15 Thread Igor Kravzov
But how I define attribute "url" in GetHTTP processor? I tried to ad a property and got an error that property not defined or supported. On Tue, Dec 15, 2015 at 4:57 PM, Joe Percivall < joeperciv...@yahoo.com.invalid> wrote: > Hello Igor, > > The URL property for GetHTTP supports expression

Re: GetHTTP processor error

2015-12-15 Thread Igor Kravzov
That would be nice addition. On Tue, Dec 15, 2015 at 5:46 PM, Mark Payne wrote: > That looks about right to me. But that seems a little bit painful. Perhaps > we can make that easier by offering a new Property that allows you to just > tell the Processor that it needs to

Re: GetHTTP processor error

2015-12-14 Thread Igor Kravzov
Thank you very much Joe. It worked. And congratulations. On Mon, Dec 14, 2015 at 6:00 PM, Joe Percivall < joeperciv...@yahoo.com.invalid> wrote: > Hello Igor, > > You're having trouble because you have a space in your format of the dates > which need to be URL encoded. You can use the EL method

Re: GetHTTP processor error

2015-12-14 Thread Joe Percivall
Glad I could help and thanks! - - - - - - Joseph Percivall linkedin.com/in/Percivall e: joeperciv...@yahoo.com On Monday, December 14, 2015 6:09 PM, Igor Kravzov wrote: Thank you very much Joe. It worked. And congratulations. On Mon, Dec 14, 2015 at 6:00 PM, Joe