Re: template repo for learning

2015-11-03 Thread Bryan Bende
If you can share a little more info about what the API that you're trying
to interact with looks like, we can likely provide more concrete guidance.

As a very basic test, to familiarize yourself with the Expression Language,
you could create a "dummy flow" such as:
- GenerateFlowFile to create a new FlowFile on a timer
- UpdateAttribute to set attributes you want to be passed to your API, you
can use expression language here to create dynamic date/time values
- InvokeHttp to call your API
- You could then route the "Response" relationship from InvokeHttp to some
other processor to possibly extract information from the response for
further use

Let us know if we can help more.

On Tue, Nov 3, 2015 at 9:51 AM, Christopher Hamm  wrote:

> I am trying to query api based on date/time and possibly based on results
> from fields of another query.
> On Nov 3, 2015 9:41 AM, "Bryan Bende"  wrote:
>
>> Christopher,
>>
>> In terms of templates, the best resources we have right now are:
>>
>> https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates
>> https://github.com/xmlking/nifi-examples
>>
>> For expression language we have the EL guide:
>> https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
>>
>> Is there a specific flow you are trying to tackle?
>>
>> -Bryan
>>
>>
>> On Tue, Nov 3, 2015 at 9:36 AM, Christopher Hamm <
>> em...@christopherhamm.com> wrote:
>>
>>> Is there a repo of nifi templates with advanced features that use lots
>>> of expression language expecially when used to make requests? I can't find
>>> enough docs or youtube videos that really dig into it.
>>>
>>
>>


template repo for learning

2015-11-03 Thread Christopher Hamm
Is there a repo of nifi templates with advanced features that use lots of
expression language expecially when used to make requests? I can't find
enough docs or youtube videos that really dig into it.


Re: template repo for learning

2015-11-03 Thread Christopher Hamm
Thanks Bryan. I will take a look. I might have a few questions to resolve
errors from the UI once I try again.

On Tue, Nov 3, 2015 at 10:14 AM, Bryan Bende  wrote:

> If you can share a little more info about what the API that you're trying
> to interact with looks like, we can likely provide more concrete guidance.
>
> As a very basic test, to familiarize yourself with the Expression
> Language, you could create a "dummy flow" such as:
> - GenerateFlowFile to create a new FlowFile on a timer
> - UpdateAttribute to set attributes you want to be passed to your API, you
> can use expression language here to create dynamic date/time values
> - InvokeHttp to call your API
> - You could then route the "Response" relationship from InvokeHttp to some
> other processor to possibly extract information from the response for
> further use
>
> Let us know if we can help more.
>
> On Tue, Nov 3, 2015 at 9:51 AM, Christopher Hamm 
> wrote:
>
>> I am trying to query api based on date/time and possibly based on results
>> from fields of another query.
>> On Nov 3, 2015 9:41 AM, "Bryan Bende"  wrote:
>>
>>> Christopher,
>>>
>>> In terms of templates, the best resources we have right now are:
>>>
>>> https://cwiki.apache.org/confluence/display/NIFI/Example+Dataflow+Templates
>>> https://github.com/xmlking/nifi-examples
>>>
>>> For expression language we have the EL guide:
>>>
>>> https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html
>>>
>>> Is there a specific flow you are trying to tackle?
>>>
>>> -Bryan
>>>
>>>
>>> On Tue, Nov 3, 2015 at 9:36 AM, Christopher Hamm <
>>> em...@christopherhamm.com> wrote:
>>>
 Is there a repo of nifi templates with advanced features that use lots
 of expression language expecially when used to make requests? I can't find
 enough docs or youtube videos that really dig into it.

>>>
>>>
>


-- 
Sincerely,
Chris Hamm
(E) ceham...@gmail.com
(Twitter) http://twitter.com/webhamm
(Linkedin) http://www.linkedin.com/in/chrishamm