Custom Processor UIs
To add a Custom UI to a processor:
Create your UI.
Build and bundle your WAR in a processor NAR.
The WAR needs to contain a
nifi-processor-configuration
file in the META-INF directory, which associates the Custom UI with that processor.Place the NAR in the lib directory and it will be discovered when NiFi starts up.
In the Configure Processor window for the processor, the Properties tab should now have an
Advanced
button, which will access the Custom UI.
As an example, here is the NAR layout for UpdateAttribute:
Update Attribute NAR Layout
nifi-update-attribute-bundle │ ├── nifi-update-attribute-model │ ├── nifi-update-attribute-nar │ ├── nifi-update-attribute-processor │ ├── nifi-update-attribute-ui │ ├── pom.xml │ └── src │ └── main │ ├── java │ ├── resources │ └── webapp │ └── css │ └── images │ └── js │ └── META-INF │ │ └── nifi-processor-configuration │ └── WEB-INF │ └── pom.xml
with the contents of the nifi-processor-configuration
as
follows:
org.apache.nifi.processors.attributes.UpdateAttribute:${project.groupId}:nifi-update-attribute-nar:${project.version}
Custom UIs can also be implemented for Controller Services and Reporting Tasks. |