[ 
https://issues.apache.org/jira/browse/NIFI-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15203280#comment-15203280
 ] 

Uwe Geercken commented on NIFI-1593:
------------------------------------

I have created the processor myself (to learn how to contruct a processor). 
Actually two of them after a discussion on the dev mailing list.

First processor "SplitToAttribute" maps the data to fields/columns and assignes 
them to attributes.

The template engine processor "MergeTemplate" reads the attributes of a 
flowfile, merges it with the velocity template and outputs the result to the 
flowfile content. a second relationship is created for the output of the 
original data.

The processors, a sample flow and more info are on github at 
https://github.com/uwegeercken/nifi_processors

The only really issue I have is that the "usage" documentation does not work - 
but I am working on that.

> New Processor to make use of a template engine
> ----------------------------------------------
>
>                 Key: NIFI-1593
>                 URL: https://issues.apache.org/jira/browse/NIFI-1593
>             Project: Apache NiFi
>          Issue Type: New Feature
>          Components: Core UI
>    Affects Versions: 0.4.1
>         Environment: all
>            Reporter: Uwe Geercken
>            Priority: Minor
>
> Add a new processor that allows to use the functionality of a template engine 
> such as Apache Velocity.
> The user would provide either the template code or reference a template file.
> In the process the flowfile content/attributes would be merged with the 
> template and thus transforming the content.
> A use case would be:
> Get a Json file >> EvaluateJsonPath >> transform the attributes of the Json 
> file to a different format using the given template code or template file 
> (using the template engine) >> conversion into any other text based format 
> such as xml, html, text.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to