<?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>topic Hi JP - some other… in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70542#M23147</link>
    <description>Hi JP - some other possibilities are&amp;nbsp;the use of the Environment Lock&amp;nbsp;or more easy could be also to write a file (into a shared directory or Web service exposed) with the run time needed value.&amp;nbsp;&amp;nbsp;</description>
    <pubDate>Wed, 31 Oct 2018 12:26:00 GMT</pubDate>
    <dc:creator>RobertoCarbonet</dc:creator>
    <dc:date>2018-10-31T12:26:00Z</dc:date>
    <item>
      <title>Can you change an environment variable at runtime?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70540#M23145</link>
      <description>I have a large batch process that interacts in a page hosted by a cloud service. The process is ran by 3 resources, 1 master and 2 slaves--they work out of the same queue of up to 1000 records at a time.

I've noticed that over the course of a couple hours, as the process runs, the browser will occasionally stop responding which&amp;nbsp;doesn't come as a surprise&amp;nbsp;since it's working in a&amp;nbsp;browser for hours at a time. I created a&amp;nbsp;re-spawn routine for the slave resources which closes the browser,&amp;nbsp;initiates the process again and the slaves continue working out of the same queue. The master bot however is programmed to&amp;nbsp;truncate the queue at the&amp;nbsp;beginning of processing under the assumption that it's initiating a new batch&amp;nbsp;UNLESS a rerun environment variable is flagged to true, in which&amp;nbsp;case the Master will behave as a slave and just&amp;nbsp;continue processing out of the&amp;nbsp;existing&amp;nbsp;queue.

My question is,&amp;nbsp;is it possible to change environment&amp;nbsp;variables at runtime? My thought is, for the master bot, if it's determined it needs to re-spawn, the rerun environment variable can be switched&amp;nbsp;to true in order to preserve the&amp;nbsp;existing queue and then it can continue to process records until it completes at which point the environment variable can be switched back to false for the subsequent job, the following day.&amp;nbsp;

Thought? Suggestions?

Thanks

JP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Sun, 28 Oct 2018 18:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70540#M23145</guid>
      <dc:creator>JustinPiche</dc:creator>
      <dc:date>2018-10-28T18:15:00Z</dc:date>
    </item>
    <item>
      <title>Hi JP - you could re-purpose…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70541#M23146</link>
      <description>Hi JP - you could re-purpose a work queue item, credential or env lock status to exchange a value between sessions. The command line and HTTP APIs provide mechanisms for changing an env var or session var, but implementing these would be more fairly complicated.</description>
      <pubDate>Tue, 30 Oct 2018 21:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70541#M23146</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-10-30T21:08:00Z</dc:date>
    </item>
    <item>
      <title>Hi JP - some other…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70542#M23147</link>
      <description>Hi JP - some other possibilities are&amp;nbsp;the use of the Environment Lock&amp;nbsp;or more easy could be also to write a file (into a shared directory or Web service exposed) with the run time needed value.&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Wed, 31 Oct 2018 12:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70542#M23147</guid>
      <dc:creator>RobertoCarbonet</dc:creator>
      <dc:date>2018-10-31T12:26:00Z</dc:date>
    </item>
    <item>
      <title>JP  - I just remembered that…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70543#M23148</link>
      <description>JP&amp;nbsp; - I just remembered that even if you did modify an env var, an already running process will not pick up the new value because it holds on to the original value it loaded up at the start.</description>
      <pubDate>Wed, 31 Oct 2018 22:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70543#M23148</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2018-10-31T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Hi JP,
Have you tried using…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70544#M23149</link>
      <description>Hi JP,
Have you tried using Session variable instead of Environment Variable?</description>
      <pubDate>Thu, 20 Dec 2018 12:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70544#M23149</guid>
      <dc:creator>SandeepAlluri</dc:creator>
      <dc:date>2018-12-20T12:28:00Z</dc:date>
    </item>
    <item>
      <title>Even if you change…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70545#M23150</link>
      <description>Even if you change enviroment variable at run time the value will chnage but that change value will not be picked.</description>
      <pubDate>Tue, 25 Dec 2018 20:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-you-change-an-environment-variable-at-runtime/m-p/70545#M23150</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-25T20:58:00Z</dc:date>
    </item>
  </channel>
</rss>

