nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Kravzov <igork.ine...@gmail.com>
Subject Re: Assign FlowFile (split text) to an attribute - which processor to use?
Date Wed, 11 May 2016 21:14:46 GMT
Thanks Mark. It worked.

On Wed, May 11, 2016 at 10:41 AM, Mark Payne <markap14@hotmail.com> wrote:

> Igor,
>
> You can use the ExtractText processor instead of UpdateAttribute. It
> allows you to use a Regular Expression
> to match against the content of a FlowFile and create an attribute from
> the Capturing Group. So you could add
> a property to the processor named "myAttribute" with a value of "(.+)" and
> that will extract the text of the FlowFile
> into an attribute named "myAttribute".
>
> Thanks
> -Mark
>
> > On May 11, 2016, at 10:35 AM, Igor Kravzov <igork.inexso@gmail.com>
> wrote:
> >
> > Hi,
> >
> > I am about to build following workflow:
> >
> > 1. Reads file (search keyword on a new line) form a disk (GetFile PR)
> > 2. Split file (SplitText PR)
> > 3. Assign splits line to an attribute (UpdateAttribute, how???)
> > 4. Pass attribute to HTTP query (InvokeHTTP PR)
> > ....
> >
> > So, how to assign split line to an attribute?
> >
> > Thanks in advance.
>
>

Mime
View raw message