Re: get ControllerService inside Advanced custom UI
Thanks Matt, how should I get the service identifier with the method getComponentDetails, do you mean I should add a service identifier property in my processor to let user to specify it for the controller service? In that case how could the service identifier configured associate with the configured controller service? Regards, Ben 2017-07-01 21:35 GMT+08:00 Matt Gilman : > Ben, > > That is the correct method to invoke. The serviceIdentifier will be the > value of the Property that identifies the service in question. The > componentId will be the identifier of Processor. You'll need to invoke > > ComponentDetails getComponentDetails(NiFiWebRequestContext requestContext) > > in order to get the service identifier from the configured properties. > > Thanks > > Matt > > On Sat, Jul 1, 2017 at 4:17 AM, 尹文才 wrote: > > > Hi guys, I' m currently creating a custom UI for my processor and I need > to > > get the DBCP Connection ControllerService in the backend code for the UI, > > the ControllerService is a property defined in the processor properties. > I > > saw there's one method in class NiFiWebConfigurationContext as below: > > > > ontrollerService getControllerService(String serviceIdentifier, String > > componentId); > > > > > > However this method requires the serviceIdentifier which I don't know > > > > how to obtain. How exactly should I get the ControllerService? > > > > Thanks. > > > > > > Regards, > > > > Ben > > >
Re: Understanding Nifi
Matan, In general, to perform data transformations in NiFi, you will not write any code at all. NiFi provides draggable components which you wire together into a dataflow to perform ingest, enrichment, routing, transformation, and delivery activities. Some components do accept arbitrary code in order to perform their behavior -- examples include ScriptedLookupService, ExecuteScript, JoltTransformJSON, etc. In these cases, the component will describe what languages are acceptable. The script components accept JavaScript/Groovy/Python/Ruby/Lua. The Jolt processor uses the custom Jolt DSL. Other components in NiFi accept NiFi Expression Language in order to populate per-flowfile attributes and values. The EL is documented here [1]. [1] http://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html Andy LoPresto alopre...@apache.org alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > On Jul 1, 2017, at 09:09, Matan Safriel wrote: > > Hi, > > What languages can I use to prescribe data transformations? does it confine > to a certain language, or can I e.g. user Clojure and Python? > Hopefully there's no Nifi-specific DSL/language that must be used. > > Thanks! > Matan
Understanding Nifi
Hi, What languages can I use to prescribe data transformations? does it confine to a certain language, or can I e.g. user Clojure and Python? Hopefully there's no Nifi-specific DSL/language that must be used. Thanks! Matan
Re: get ControllerService inside Advanced custom UI
Ben, That is the correct method to invoke. The serviceIdentifier will be the value of the Property that identifies the service in question. The componentId will be the identifier of Processor. You'll need to invoke ComponentDetails getComponentDetails(NiFiWebRequestContext requestContext) in order to get the service identifier from the configured properties. Thanks Matt On Sat, Jul 1, 2017 at 4:17 AM, 尹文才 wrote: > Hi guys, I' m currently creating a custom UI for my processor and I need to > get the DBCP Connection ControllerService in the backend code for the UI, > the ControllerService is a property defined in the processor properties. I > saw there's one method in class NiFiWebConfigurationContext as below: > > ontrollerService getControllerService(String serviceIdentifier, String > componentId); > > > However this method requires the serviceIdentifier which I don't know > > how to obtain. How exactly should I get the ControllerService? > > Thanks. > > > Regards, > > Ben >
get ControllerService inside Advanced custom UI
Hi guys, I' m currently creating a custom UI for my processor and I need to get the DBCP Connection ControllerService in the backend code for the UI, the ControllerService is a property defined in the processor properties. I saw there's one method in class NiFiWebConfigurationContext as below: ontrollerService getControllerService(String serviceIdentifier, String componentId); However this method requires the serviceIdentifier which I don't know how to obtain. How exactly should I get the ControllerService? Thanks. Regards, Ben