Hi thanks for the answers. I was a little confised when I went to the JIRA but I understand better I'll try next week to study the source code and see what I can do. I work for industry and it's more C#, TFS there but I will take the java train woth pleasure.
By the way is there a place to share Custom Processors which won't necessary join the Processors bundle but allow to gather knowledge Here's a link to my first processor required for a specific project but with some kind of genericity. It convert excel file table dat to sql: https://github.com/mathiastiberghien/code192.nifi.processors/tree/master/src/main/java/code192/nifi/processors Le 30 sept. 2016 15:59, "Mark Payne" <[email protected]> a écrit : Mathias, Sorry that nobody got back to you on this. I'll try to answer your questions here as best I can. Feel free to correct me if I misunderstand anything, or to engage if you have further ideas or questions. At this time, it is "sort of" possible to change the allowed values based on a property change. When the user selects a controller service for the connection, nothing goes back to the NiFi server, so there is no way to do any sort of manipulation at that time. However, once the user clicks OK, the new configuration is set on the Processor. At that point, it is possible to return a different List of Property Descriptors. So you could make it so that when the user clicks OK, they would have different values if they went to configure the processor again. Not a great solution for this use case, but it may help somewhat. One thing that was discussed quire a while ago was the idea of adding an "Apply" button to the configuration dialog. This would allow the new configuration to be set on the Processor and a new set of Relationships & Property Descriptors, etc. to come back, but without closing the Configure dialog. So the user could select a connection and then click Apply and see the properties change. To date, though, this has not been done. I don't know of any JIRA that has been created for it, either. Just a brief discussion on a mailing list that I remember. If you think that would be beneficial, feel free to create a JIRA for that. In terms of building a Property Editor - that's not something that is currently supported. We do support providing an "Advanced UI" for a property, where you have the ability to create a custom UI for configuring your processor. But there's no simple Widget-like framework at this time. Someone had also brought up a similar item on a mailing list about having a File Browse dialog for when you want to select a file. This never happened, though, because what we really would need is the ability to browse for files on the NiFi server. Creating the ability to browse files there could be quite a security concern, since anyone that is able to use the UI would be able to browse the file system according to which ever user launched NiFi. Another idea that was brought up a while back was the notion of a "Resource Registry" where you could upload a file to the Resource Registry and then configure processors to pull data from the Resource Registry instead of a local file. This would be advantageous as it provides a nice user experience, being able to upload the file directory, and all nodes in a cluster could pull from the Registry without having to manually copy the file around. I don't know of any work that's been done here yet either - just a matter of priorities I guess. There is no way to set the default scheduling for a processor. I could see providing the option of creating an Annotation that we could use, such as: @DefaultSchedule(strategy=SchedulingStrategy.TIMER_DRIVEN, frequency="30 secs") If you think it would be helpful, feel free to create a JIRA for this as well. If you have other ideas for any of these topics, please feel free to write back and discuss further, also! Thanks -Mark On 2016-09-28 10:16 (-0400), "Mathias Tiberghien" <[email protected]> wrote: > Hi,> > > I'm working on Nifi Custom Processors and I really enjoy it!> > > I have a couple of questions:> > > - Is it possible to change the the allowed values based on a> > property change? Here is my scenario: I have a PropertyDescriptor named> > Connexion which contains DBCPService elements. When the user select one of> > the connection, I want to update the DataTable PropertyDescriptor listing> > the Tables related to the Connexion Property. Can I do that?> > > - Is it possible to build my own Property editor, or at least> > extends an existing? I have a File Path PropertyDescriptor and I should have> > a FileBrowser instead of having to type the file path> > > - Is it possible to set the default Schedule Property on a Custom> > Processor?> > > > > > Thanks,> > > > > > Mathias> > > > > > > > > Mathias TIBERGHIEN> > > CTO> > > Cell. : +33(0)6 27 58 13 68> > > > > > 87 Bd Chanzy> > > 93100 Montreuil> > > France> > > > > > Tel : +33(0)1 42 87 16 57> > > <http://www.code192.com> www.code192.com> > > > > > > > ---> > L'absence de virus dans ce courrier Èlectronique a ÈtÈ vÈrifiÈe par le logiciel antivirus Avast.> > https://www.avast.com/antivirus> >
