Support Questions

Find answers, ask questions, and share your expertise

Can I have custom processor name different than java class name?

avatar
Master Collaborator

Hello Experts,

 

I am upgrading nifi from 1.12.x to 1.16.x and for some time I need to support both the versions.

 

So I am trying to have profiles for nifi 12 and 16 in maven pom so that based on the profile passed it can build the nar file for specific version.

 

I am facing an challenge in above step, because of  a refactoring happened in nifi security utils post 1.12.

 

I was using 'OkHttpClientUtil' in 1.12 and which is no longer available in 1.16

 

So now to support both the version for a custom processor I need to have 2 java classes, one for 1.12 and one for 1.16 with minor code changes.

 

But I want to keep my custom processor name same across both the version, is it possible ?

Ex : my java classes like below ...

Nifi 12 - ResourceRouting.java

Nifi 16 - ResourceRoutingV2.java

 

Is it possible to have custom processor name as "ResourceRouting" ResourceRoutingV2.java also?

 

Any suggestion would be much appreciated.

 

@araujo @MattWho @GangWar @smdas 

 

Thanks,

Mahendra

0 REPLIES 0