<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Is it possible to use variable shared by different process groups? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358550#M237881</link>
    <description>&lt;P&gt;Hi, I want ask a shared variable between non-associated Processors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 separate Process Groups.&lt;BR /&gt;One group monitors the status of the API called log manager, and changes the variable 'Circuit_Break' to 'enable' through UpdateAttribute when the API status is bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another group receives syslog as udp and put it in an API called log manager. At this time, if the variable called 'Circuit_Break' is 'enable' through RouteOnAttribute in the middle, alert with slack and try to execute ControlRate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thisis Group 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dreaminz_0-1669730938411.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36348i3C0B1C05729CB405/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dreaminz_0-1669730938411.png" alt="dreaminz_0-1669730938411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thisis Group 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dreaminz_1-1669730964012.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36349i9B755EFD8478C37D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dreaminz_1-1669730964012.png" alt="dreaminz_1-1669730964012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use variable shared by different process groups?&lt;BR /&gt;If not available, are there any other good ways?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to periodically monitor the API and give a slight delay according to the API status.&lt;/P&gt;&lt;P&gt;When the API is in a bad state, I want to give it time to recover by adjusting the throughput(by ControlRate).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 29 Nov 2022 14:12:38 GMT</pubDate>
    <dc:creator>dreaminz</dc:creator>
    <dc:date>2022-11-29T14:12:38Z</dc:date>
    <item>
      <title>Is it possible to use variable shared by different process groups?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358550#M237881</link>
      <description>&lt;P&gt;Hi, I want ask a shared variable between non-associated Processors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 separate Process Groups.&lt;BR /&gt;One group monitors the status of the API called log manager, and changes the variable 'Circuit_Break' to 'enable' through UpdateAttribute when the API status is bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another group receives syslog as udp and put it in an API called log manager. At this time, if the variable called 'Circuit_Break' is 'enable' through RouteOnAttribute in the middle, alert with slack and try to execute ControlRate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thisis Group 2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dreaminz_0-1669730938411.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36348i3C0B1C05729CB405/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dreaminz_0-1669730938411.png" alt="dreaminz_0-1669730938411.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thisis Group 1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dreaminz_1-1669730964012.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/36349i9B755EFD8478C37D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dreaminz_1-1669730964012.png" alt="dreaminz_1-1669730964012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use variable shared by different process groups?&lt;BR /&gt;If not available, are there any other good ways?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to periodically monitor the API and give a slight delay according to the API status.&lt;/P&gt;&lt;P&gt;When the API is in a bad state, I want to give it time to recover by adjusting the throughput(by ControlRate).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="gtx-trans-icon"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Nov 2022 14:12:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358550#M237881</guid>
      <dc:creator>dreaminz</dc:creator>
      <dc:date>2022-11-29T14:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use variable shared by different process groups?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358916#M237978</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102139"&gt;@dreaminz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create variables on a process group, those variables are then only available to that process group (scope) on which they were created.&lt;BR /&gt;NiFi documentation on Variables:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Variables" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Variables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Variable shave been deprecated in favor of Parameter Contexts:&lt;BR /&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#parameter-contexts" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#parameter-contexts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can create a single parameter context that you add parameters to and then associate the parameter context with multiple process groups.&amp;nbsp; This will allow you to update a parameter in one parameter context&amp;nbsp; and effectively update your flows in multiple process groups.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 19:19:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358916#M237978</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2022-12-05T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use variable shared by different process groups?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358997#M237992</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/102139"&gt;@dreaminz&lt;/a&gt;&amp;nbsp;Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 22:35:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-variable-shared-by-different-process/m-p/358997#M237992</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2022-12-06T22:35:02Z</dc:date>
    </item>
  </channel>
</rss>

