Re: Assign FlowFile (split text) to an attribute - which processor to use?

2016-05-11 Thread Igor Kravzov
Thanks Mark. It worked. On Wed, May 11, 2016 at 10:41 AM, Mark Payne 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. S

Re: Assign FlowFile (split text) to an attribute - which processor to use?

2016-05-11 Thread Mark Payne
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 "(.+)" a

Assign FlowFile (split text) to an attribute - which processor to use?

2016-05-11 Thread Igor Kravzov
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 a