<?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 (HELP) initialise and clean up in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51294#M6378</link>
    <description>1. if i have 10 actions in a object, and i run whole object at once, how many time initialise and cleanup page will get executed?&lt;BR /&gt;&lt;BR /&gt;2. if i call object's different action pages from process studio, for each action page called initialise and cleanup page will get executed seperately or it will get executed just one time?&lt;BR /&gt;&lt;BR /&gt;3. if i have 10 action page each will consume 1mb memory, if i call only one action page from process studio, then will it consumes 10mb memory or 1mb?&lt;BR /&gt;&lt;BR /&gt;4. if i run 10 action pages if i run all action seperately, will initialise&amp;nbsp; cleanup page will get run 10 times or just one time?&lt;BR /&gt;&lt;BR /&gt;this questions were asked to me and i was clueless, if you can tell more info about it that will be very helpful.&lt;BR /&gt;thanks for the answer and help.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;VARUN PARATWAR&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 24 Aug 2022 06:52:00 GMT</pubDate>
    <dc:creator>VARUNPARATWAR</dc:creator>
    <dc:date>2022-08-24T06:52:00Z</dc:date>
    <item>
      <title>(HELP) initialise and clean up</title>
      <link>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51294#M6378</link>
      <description>1. if i have 10 actions in a object, and i run whole object at once, how many time initialise and cleanup page will get executed?&lt;BR /&gt;&lt;BR /&gt;2. if i call object's different action pages from process studio, for each action page called initialise and cleanup page will get executed seperately or it will get executed just one time?&lt;BR /&gt;&lt;BR /&gt;3. if i have 10 action page each will consume 1mb memory, if i call only one action page from process studio, then will it consumes 10mb memory or 1mb?&lt;BR /&gt;&lt;BR /&gt;4. if i run 10 action pages if i run all action seperately, will initialise&amp;nbsp; cleanup page will get run 10 times or just one time?&lt;BR /&gt;&lt;BR /&gt;this questions were asked to me and i was clueless, if you can tell more info about it that will be very helpful.&lt;BR /&gt;thanks for the answer and help.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;VARUN PARATWAR&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2022 06:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51294#M6378</guid>
      <dc:creator>VARUNPARATWAR</dc:creator>
      <dc:date>2022-08-24T06:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: (HELP) initialise and clean up</title>
      <link>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51295#M6379</link>
      <description>Hi V,&lt;BR /&gt;&lt;BR /&gt;Interesting questions! I hope someone at BP will write an extensive answer that covers all this and perhaps more.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;---------------&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2022 10:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51295#M6379</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-08-24T10:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: (HELP) initialise and clean up</title>
      <link>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51296#M6380</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/21671"&gt;@VARUNPARATWAR&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I'll take a stab at some of this.&lt;BR /&gt;&lt;BR /&gt;1. &lt;STRONG&gt;Initialise&lt;/STRONG&gt; and &lt;STRONG&gt;Cleanup&lt;/STRONG&gt; are only called once for each VBO within a process. &lt;STRONG&gt;Initialise&lt;/STRONG&gt; is called the very first time the VBO is referenced (regardless of which published action you call on the VBO) and &lt;STRONG&gt;Clean Up&lt;/STRONG&gt; is called when the process terminates. You can see this is you add a reference to &lt;STRONG&gt;System.Windows.Forms.dll&lt;/STRONG&gt; to the ​&lt;EM&gt;&lt;STRONG&gt;External References&lt;/STRONG&gt;&lt;/EM&gt; and &lt;STRONG&gt;System.Windows.Forms&lt;/STRONG&gt; to the &lt;EM&gt;&lt;STRONG&gt;Namespace Imports&lt;/STRONG&gt;&lt;/EM&gt; under the &lt;EM&gt;&lt;STRONG&gt;Code Options&lt;/STRONG&gt;&lt;/EM&gt;. Then you can add a Code stage to the &lt;STRONG&gt;Initialise&lt;/STRONG&gt; and &lt;STRONG&gt;Clean Up&lt;/STRONG&gt; actions and within that Code stage enter the following code:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;MessageBox.Show("Initialize")​&lt;/CODE&gt;&lt;/PRE&gt;
or&amp;nbsp;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;MessageBox.Show("Clean Up")​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Then when you run the process (ex. assign it to two different runtime resources on your machine), you'll see a message box pop-up for each action within each process.&lt;BR /&gt;&lt;BR /&gt;2. Same idea as above even if you're running in debug. The first time you call any action on the specific VBO, its &lt;STRONG&gt;Initialise&lt;/STRONG&gt; action will be executed. When the process completes and you click the Reset button, the &lt;STRONG&gt;Clean Up&lt;/STRONG&gt; action will be called for each VBO in the process.&lt;/P&gt;
&lt;BR /&gt;3. This is much more nuanced. If you're referring to memory consumed by data items specific actions use (ex. creating and populating a new Collection), that memory will only be consumed if the action is called. You also need to consider whether your VBOs have the &lt;STRONG&gt;Shareable&lt;/STRONG&gt; property set. The Shareable property essentially makes your VBO a Singleton within any process that consumes it. That applies primarily in situations where the VBO is actually consumed by other VBOs that are then used in a process. Hopefully that makes sense. There's more information that may be helpful to you available &lt;A href="https://bpdocs.blueprism.com/bp-6-10/en-us/frmStagePropertiesObjectInfo.htm" target="_blank" rel="noopener"&gt;here&lt;/A&gt; and &lt;A href="https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=0dbd248c-e467-42ce-9443-3a159fc6f56c&amp;amp;CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01#8d07e306-446c-4d15-9194-b215cb251747" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;4. Refer back to 1 &amp;amp; 2 above.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:42:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/HELP-initialise-and-clean-up/m-p/51296#M6380</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-24T14:42:00Z</dc:date>
    </item>
  </channel>
</rss>

