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

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript