How to define ControllerService with expression language in NifiHow do I efficiently iterate over each entry in a Java Map?How do I call one constructor from another in Java?How do I read / convert an InputStream into a String in Java?How do I generate random integers within a specific range in Java?How can I create an executable JAR with dependencies using Maven?How to get an enum value from a string value in Java?How do I determine whether an array contains a particular value in Java?How do I declare and initialize an array in Java?How do I convert a String to an int in Java?How do I fix android.os.NetworkOnMainThreadException?

Calculating Fibonacci sequence in several different ways

Does Mathematica 12 support GT 730 CUDA?

Why Lie algebras if what we care about in physics are groups?

Is it ethical to tell my teaching assistant that I like him?

is FIND WORDS in P?

Is it better to merge "often" or only after completion do a big merge of feature branches?

Do I care if the housing market has gone up or down, if I'm moving from one house to another?

Can I make Ubuntu 18.04 switch between multiple windows of the program by just clicking the icon?

Why are Oscar, India, and X-Ray (O, I, and X) not used as taxiway identifiers?

Would using carbon dioxide as fuel work to reduce the greenhouse effect?

Is there an English word to describe when a sound "protrudes"?

How does mathematics work?

Can a creature sustain itself by eating its own severed body parts?

Considerations when providing money to only one child out of two

How do you structure large embedded projects?

How old is the Italian word "malandrino"?

Do I have to mention my main character's age?

Strange LED behavior

How can I deal with someone that wants to kill something that isn't supposed to be killed?

I am a dual citizen of United States and Mexico, can I use my Mexican license in california when visiting?

Can a warlock shoot multiple beams from the Eldritch Blast cantrip with only a single free hand?

What do Unicorns want?

Can someone clarify when a Trigger executes on a single record vs. multiple in one context?

Can I use Sitecore's Configuration patching mechanics for my Identity Server configuration?



How to define ControllerService with expression language in Nifi


How do I efficiently iterate over each entry in a Java Map?How do I call one constructor from another in Java?How do I read / convert an InputStream into a String in Java?How do I generate random integers within a specific range in Java?How can I create an executable JAR with dependencies using Maven?How to get an enum value from a string value in Java?How do I determine whether an array contains a particular value in Java?How do I declare and initialize an array in Java?How do I convert a String to an int in Java?How do I fix android.os.NetworkOnMainThreadException?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















As part of a complex model of flows that are replicated across domains, i am trying to generalise definition of custom controllerservices that are used in many processors.



Adding a ControllerService to a Processor works the same as with properties: with the PropertyDescriptor.Builder which accepts expressionLanguageSupported(). However, it is not well documented how to configure this through the ui, or what additional steps need to be taken in the code of the processor that accepts said ControllerService



When i simply add the expressionLanguageSupported(true) method, the dropdown changes to a free input with the uuid of the configured service.
I tried putting this uuid in a process group scoped variable called service1, but the validator won't accept $service1



What am i doing wrong? we are using Nifi 1.6










share|improve this question




























    0















    As part of a complex model of flows that are replicated across domains, i am trying to generalise definition of custom controllerservices that are used in many processors.



    Adding a ControllerService to a Processor works the same as with properties: with the PropertyDescriptor.Builder which accepts expressionLanguageSupported(). However, it is not well documented how to configure this through the ui, or what additional steps need to be taken in the code of the processor that accepts said ControllerService



    When i simply add the expressionLanguageSupported(true) method, the dropdown changes to a free input with the uuid of the configured service.
    I tried putting this uuid in a process group scoped variable called service1, but the validator won't accept $service1



    What am i doing wrong? we are using Nifi 1.6










    share|improve this question
























      0












      0








      0








      As part of a complex model of flows that are replicated across domains, i am trying to generalise definition of custom controllerservices that are used in many processors.



      Adding a ControllerService to a Processor works the same as with properties: with the PropertyDescriptor.Builder which accepts expressionLanguageSupported(). However, it is not well documented how to configure this through the ui, or what additional steps need to be taken in the code of the processor that accepts said ControllerService



      When i simply add the expressionLanguageSupported(true) method, the dropdown changes to a free input with the uuid of the configured service.
      I tried putting this uuid in a process group scoped variable called service1, but the validator won't accept $service1



      What am i doing wrong? we are using Nifi 1.6










      share|improve this question














      As part of a complex model of flows that are replicated across domains, i am trying to generalise definition of custom controllerservices that are used in many processors.



      Adding a ControllerService to a Processor works the same as with properties: with the PropertyDescriptor.Builder which accepts expressionLanguageSupported(). However, it is not well documented how to configure this through the ui, or what additional steps need to be taken in the code of the processor that accepts said ControllerService



      When i simply add the expressionLanguageSupported(true) method, the dropdown changes to a free input with the uuid of the configured service.
      I tried putting this uuid in a process group scoped variable called service1, but the validator won't accept $service1



      What am i doing wrong? we are using Nifi 1.6







      java service controller expression apache-nifi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 15:02









      chaixdevchaixdev

      658 bronze badges




      658 bronze badges






















          1 Answer
          1






          active

          oldest

          votes


















          3














          Controller Services are not designed to work that way. You can use expression language but as you say, you will be forced to pass the controller service id.



          There is a solution to this by using a lookup service. For example, the SQL processors can use DBCPConnectionPoolLookup to dynamically pass a DBCPConnectionPool controller service to the processor.



          You could use this way in your bundle.



          EDIT:



          You should also know that if you reference the controller service without expression language support, and make a template out of your flow, when you will deploy it, the processor will reference the controller service that was just created with your template.






          share|improve this answer

























          • i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

            – chaixdev
            Mar 26 at 10:38












          • @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

            – Ben Yaakobi
            Mar 26 at 11:02












          • @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

            – Ben Yaakobi
            Mar 26 at 13:38











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55340746%2fhow-to-define-controllerservice-with-expression-language-in-nifi%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          Controller Services are not designed to work that way. You can use expression language but as you say, you will be forced to pass the controller service id.



          There is a solution to this by using a lookup service. For example, the SQL processors can use DBCPConnectionPoolLookup to dynamically pass a DBCPConnectionPool controller service to the processor.



          You could use this way in your bundle.



          EDIT:



          You should also know that if you reference the controller service without expression language support, and make a template out of your flow, when you will deploy it, the processor will reference the controller service that was just created with your template.






          share|improve this answer

























          • i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

            – chaixdev
            Mar 26 at 10:38












          • @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

            – Ben Yaakobi
            Mar 26 at 11:02












          • @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

            – Ben Yaakobi
            Mar 26 at 13:38
















          3














          Controller Services are not designed to work that way. You can use expression language but as you say, you will be forced to pass the controller service id.



          There is a solution to this by using a lookup service. For example, the SQL processors can use DBCPConnectionPoolLookup to dynamically pass a DBCPConnectionPool controller service to the processor.



          You could use this way in your bundle.



          EDIT:



          You should also know that if you reference the controller service without expression language support, and make a template out of your flow, when you will deploy it, the processor will reference the controller service that was just created with your template.






          share|improve this answer

























          • i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

            – chaixdev
            Mar 26 at 10:38












          • @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

            – Ben Yaakobi
            Mar 26 at 11:02












          • @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

            – Ben Yaakobi
            Mar 26 at 13:38














          3












          3








          3







          Controller Services are not designed to work that way. You can use expression language but as you say, you will be forced to pass the controller service id.



          There is a solution to this by using a lookup service. For example, the SQL processors can use DBCPConnectionPoolLookup to dynamically pass a DBCPConnectionPool controller service to the processor.



          You could use this way in your bundle.



          EDIT:



          You should also know that if you reference the controller service without expression language support, and make a template out of your flow, when you will deploy it, the processor will reference the controller service that was just created with your template.






          share|improve this answer















          Controller Services are not designed to work that way. You can use expression language but as you say, you will be forced to pass the controller service id.



          There is a solution to this by using a lookup service. For example, the SQL processors can use DBCPConnectionPoolLookup to dynamically pass a DBCPConnectionPool controller service to the processor.



          You could use this way in your bundle.



          EDIT:



          You should also know that if you reference the controller service without expression language support, and make a template out of your flow, when you will deploy it, the processor will reference the controller service that was just created with your template.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 26 at 13:37

























          answered Mar 25 at 15:19









          Ben YaakobiBen Yaakobi

          58712 bronze badges




          58712 bronze badges












          • i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

            – chaixdev
            Mar 26 at 10:38












          • @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

            – Ben Yaakobi
            Mar 26 at 11:02












          • @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

            – Ben Yaakobi
            Mar 26 at 13:38


















          • i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

            – chaixdev
            Mar 26 at 10:38












          • @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

            – Ben Yaakobi
            Mar 26 at 11:02












          • @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

            – Ben Yaakobi
            Mar 26 at 13:38

















          i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

          – chaixdev
          Mar 26 at 10:38






          i'm fine with passing the controller service id. I mainy want to avoid having to manually go over each processor to select the appropriate controllerservice each time i deploy a template. To be specific about your answer, this id can not be provided by a scoped variable? if so, allowing expression language for controller service properties seems pretty useless?

          – chaixdev
          Mar 26 at 10:38














          @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

          – Ben Yaakobi
          Mar 26 at 11:02






          @chaixdev It's not useless. You have to pass the controller service id, but you may pass it using the variable registry and expression language.

          – Ben Yaakobi
          Mar 26 at 11:02














          @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

          – Ben Yaakobi
          Mar 26 at 13:38






          @chaixdev also, see the edit. I think it would be more fit to just use it as is since NiFi support referencing controller services within a template.

          – Ben Yaakobi
          Mar 26 at 13:38









          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55340746%2fhow-to-define-controllerservice-with-expression-language-in-nifi%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현