You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Mathias Tiberghien <ma...@everdyn.com> on 2016/09/28 14:11:52 UTC
Questions about Custom Processor Design
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
R&D Manager - Developer
Cell. : +33(0)6 27 58 13 68
87 Bd Chanzy
93100 Montreuil
France
Tel : +33(0)4 42 53 48 03
<http://www.everdyn.com/> www.everdyn.com
Follow us on... <https://twitter.com/everdyners> Twitter and
<https://www.facebook.com/pages/Everdyn/446751742027023> Facebook
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
--
***************************************************************************************
Avis : Ce courriel (incluant ses éventuelles pièces jointes) peut contenir
des informations confidentielles et/ou protégées ou dont la diffusion est
restreinte. Si vous avez reçu ce courriel par erreur, vous ne devez ni le
copier, ni l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en
avertir immédiatement l’expéditeur et d'effacer ce courriel de
votre système. Everdyn décline toute responsabilité en cas de corruption
par virus, d’altération ou de falsification de ce courriel lors de sa
transmission par voie électronique. Warning : This email (including any
attachments) may contain confidential and/or privileged information or
information otherwise protected from disclosure. If you are not the
intended recipient, please notify the sender immediately, do not copy this
message or any attachments and do not use it for any purpose or disclose
its content to any person, but delete this message and any attachments from
your system. Everdyn disclaims any and all liability if this email
transmission was virus corrupted, altered or falsified.
------------------------------------------------------------
------------------------------------Everdyn SARL (451 527 477 RCS Aix En
Provence) - Siege social: 14 Rue Peyssonnel 13100 Aix En Provence
************************************************************
***************************
Fwd: Questions about Custom Processor Design
Posted by Bryan Bende <bb...@gmail.com>.
Hi Mathias,
I responded to this email on Wednesday, but I'm not sure if it went through
because I'm not seeing it when looking in ponymail, so I am resending.
Hope this helps.
-Bryan
---------- Forwarded message ----------
From: Bryan Bende <bb...@gmail.com>
Date: Wed, Sep 28, 2016 at 10:21 AM
Subject: Re: Questions about Custom Processor Design
To: dev@nifi.apache.org
Hi Mathias,
Glad you are enjoying building processors! You raised some great
questions, and some of these ideas have definitely come up before.
For changing the allowable values based another property, currently you
can't do this, but there is a JIRA for this improvement [1]. The current
approach is to use a custom validate method to ensure that properties that
depend on each other are set appropriately.
For building your own property editor, I'll have to defer to others, but I
believe you might be able to accomplish this by building a custom UI for
your processor. There are a couple of processors that have custom UIs, I
believe the JOLT transform processor is one example.
For the default schedule, you currently can't do this, but this JIRA
captures that idea [2].
Hope that helps.
-Bryan
[1] https://issues.apache.org/jira/browse/NIFI-1121
[2] https://issues.apache.org/jira/browse/NIFI-1526
On Wed, Sep 28, 2016 at 10:11 AM, Mathias Tiberghien <
mathias.tiberghien@everdyn.com> 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*
>
> R&D Manager - Developer
>
> Cell. : +33(0)6 27 58 13 68
>
>
>
> [image: Images intégrées 2]
>
> 87 Bd Chanzy
>
> 93100 Montreuil
>
> France
>
>
>
> Tel : +33(0)4 42 53 48 03
>
>
>
> *www.everdyn.com <http://www.everdyn.com/>*
>
>
>
> Follow us on... Twitter <https://twitter.com/everdyners>and Facebook
> <https://www.facebook.com/pages/Everdyn/446751742027023>
>
>
>
>
> ------------------------------
> [image: Avast logo]
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
> L'absence de virus dans ce courrier électronique a été vérifiée par le
> logiciel antivirus Avast.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>
>
> ************************************************************
> ***************************
> Avis : Ce courriel (incluant ses éventuelles pièces jointes) peut
> contenir des informations confidentielles et/ou protégées ou dont la
> diffusion est restreinte. Si vous avez reçu ce courriel par erreur, vous ne
> devez ni le copier, ni l'utiliser, ni en divulguer le contenu a quiconque.
> Merci d'en avertir immédiatement l’expéditeur et d'effacer ce courriel de
> votre système. Everdyn décline toute responsabilité en cas de corruption
> par virus, d’altération ou de falsification de ce courriel lors de sa
> transmission par voie électronique. Warning : This email (including any
> attachments) may contain confidential and/or privileged information or
> information otherwise protected from disclosure. If you are not the
> intended recipient, please notify the sender immediately, do not copy this
> message or any attachments and do not use it for any purpose or disclose
> its content to any person, but delete this message and any attachments from
> your system. Everdyn disclaims any and all liability if this email
> transmission was virus corrupted, altered or falsified.
> ------------------------------------------------------------
> ------------------------------------Everdyn SARL (451 527 477 RCS Aix En
> Provence) - Siege social: 14 Rue Peyssonnel 13100 Aix En Provence
> ************************************************************
> ***************************
>