<?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 When to attach in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65534#M18139</link>
    <description>The team I recently joined has a best practice of having 'Attach' as a seperate action on each object and then call that action first, before any other action on the object is used. So in a simple process, it would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21404.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21546i0E27C68980885422/image-size/large?v=v2&amp;amp;px=999" role="button" title="21404.png" alt="21404.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, in a process that uses a lot of different objects, that also means a lot of 'Attach' stages. So my question is whether this is the correct time to call attach, or if you should it somewhere else. For instance:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;At the beginning of each action&lt;/LI&gt;
&lt;LI&gt;In the initialize action (if this is possible)&lt;/LI&gt;
&lt;LI&gt;...somewhere else?&lt;/LI&gt;
&lt;/UL&gt;
How do you guys do it?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jakob Sørensen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 16 Sep 2021 07:16:00 GMT</pubDate>
    <dc:creator>JakobSørensen</dc:creator>
    <dc:date>2021-09-16T07:16:00Z</dc:date>
    <item>
      <title>When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65534#M18139</link>
      <description>The team I recently joined has a best practice of having 'Attach' as a seperate action on each object and then call that action first, before any other action on the object is used. So in a simple process, it would look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21404.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21546i0E27C68980885422/image-size/large?v=v2&amp;amp;px=999" role="button" title="21404.png" alt="21404.png" /&gt;&lt;/span&gt;&lt;BR /&gt;However, in a process that uses a lot of different objects, that also means a lot of 'Attach' stages. So my question is whether this is the correct time to call attach, or if you should it somewhere else. For instance:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;At the beginning of each action&lt;/LI&gt;
&lt;LI&gt;In the initialize action (if this is possible)&lt;/LI&gt;
&lt;LI&gt;...somewhere else?&lt;/LI&gt;
&lt;/UL&gt;
How do you guys do it?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jakob Sørensen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Sep 2021 07:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65534#M18139</guid>
      <dc:creator>JakobSørensen</dc:creator>
      <dc:date>2021-09-16T07:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65535#M18140</link>
      <description>&lt;P&gt;It's better to use attach page in beginning of each actions next to start stage. So it will reduce the use of calling them separately in process each time.&lt;/P&gt;
&lt;P&gt;What's the application you are automating ? Is it something like mainframe or Citrix.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jane Jebarson Senior Automation Engineer&lt;BR /&gt;Engineer&lt;BR /&gt;Allianz&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Sep 2021 13:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65535#M18140</guid>
      <dc:creator>jebarson</dc:creator>
      <dc:date>2021-09-16T13:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65536#M18141</link>
      <description>It's a lot of different systems - but most of them are web based. To keep the objects small, we make an object for each logic part of the website (e.g. the navigation bar). But this also means that each object has to be attached. I would find it more logical if each action started with an Check if already attached? &amp;gt; No? &amp;gt; Attach. So that the 'Attach' part wasn't visible at process level.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jakob Sørensen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Sep 2021 14:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65536#M18141</guid>
      <dc:creator>JakobSørensen</dc:creator>
      <dc:date>2021-09-16T14:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65537#M18142</link>
      <description>Hello Jakob,&lt;BR /&gt;I believe your take on this is correct.&lt;BR /&gt;And that is why "Is connected" condition is there.&lt;BR /&gt;&lt;BR /&gt;If you are calling attach before every action it will make the code huge and it will increase your DEV and Testing efforts.&lt;BR /&gt;&lt;BR /&gt;And I think it is a recommended best practice to check for connection before attaching.&lt;BR /&gt;Also if there are many objects and you are automating WEB then synchronizing of detach and attach would be a challenge,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 03:55:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65537#M18142</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-17T03:55:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65538#M18143</link>
      <description>Hi Jakob,&lt;BR /&gt;&lt;BR /&gt;Might I suggest a hybrid approach?&amp;nbsp; Build the "check attached" piece at the top of your attach page in each object. That way, no matter where it is called from (process or object action page), the check completes first. This will hopefully reduce issues with adopting a new style of development regarding attaching.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;One other note - someone once suggested to me that if you're going to call an object page from a process, you need to publish it (obviously), but then you should avoid calling that page from within the object itself. If you're going to call an object page from another page in that object, you should not publish it.&amp;nbsp; If you really want to prevent people from using the Attaches all over your process pages, you could also not publish the page.&amp;nbsp; This way a developer could infer that the attach was built into the object layer and not necessary from the process layer.&lt;BR /&gt;&lt;BR /&gt;I hope this helps, and good luck with the new team!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Diane Sanzone&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 12:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65538#M18143</guid>
      <dc:creator>diane.sanzone</dc:creator>
      <dc:date>2021-09-17T12:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65539#M18144</link>
      <description>&lt;P&gt;What I was thinking about doing, was having an attach action (as you mentioned) which first checks and then attaches if necessary, like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21377.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21523i39DD8807C5CDBCD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="21377.png" alt="21377.png" /&gt;&lt;/span&gt;&lt;BR /&gt;The only downside of this is that you have to remember to call in the beginning of every action. Which is why I wondered if you could get it to run automatically, by putting it in the initialize action.&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jakob Sørensen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65539#M18144</guid>
      <dc:creator>JakobSørensen</dc:creator>
      <dc:date>2021-09-17T14:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65540#M18145</link>
      <description>Hello Jakob,&lt;BR /&gt;If you are having this as initialize action later point of time in code achieving attach would be complex in other places if required.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65540#M18145</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-17T14:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65541#M18146</link>
      <description>It's definitely the best way to go to have an Attach subpage reference inside of each action at the beginning of the action. Every single one of our actions starts with a subpage reference like that. In the subpage, it's the standard Attach page that checks to see if it's already connected or not, and if it's not then it connects/attaches.
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 17:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65541#M18146</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2021-09-17T17:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65542#M18147</link>
      <description>That would be an infinite loop if it could not attach because the recover would always catch the attach failure and it would never end.&lt;BR /&gt;&lt;BR /&gt;I think it'd be nice if Blue Prism implemented a way to configure attach to be automatically run in an object. That does seem like a cool idea, but as with most flow-related activities in Blue Prism, it tends to be designed such that we need to specifically an purposefully do something. It causes Blue Prism processes and objects to be filled with tons of stages, but the standard approach works pretty well.&lt;BR /&gt;&lt;BR /&gt;I think it's important for Blue Prism developers to be used to dropping in an Attach subpage reference at the beginning of every action, and a code review checklist can help make sure it gets done before deployment.
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Sep 2021 17:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65542#M18147</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2021-09-17T17:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65543#M18148</link>
      <description>Hello Dave,&lt;BR /&gt;I think this sub page reference idea is already a popular option among us developers.&lt;BR /&gt;But in that case also we have to call the sub page at the start of every action and in case if we miss it then there's a chance of failure.&lt;BR /&gt;&lt;BR /&gt;Code review checklist helps a lot here having attach before every action as one of the high priority check point.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ved Sengupta&lt;BR /&gt;RPA Developer&lt;BR /&gt;Deloitte India (Offices of the US)&lt;BR /&gt;Bangalore | INDIA&lt;BR /&gt;------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Sep 2021 05:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65543#M18148</guid>
      <dc:creator>VedSengupta</dc:creator>
      <dc:date>2021-09-18T05:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65544#M18149</link>
      <description>It might be worth mentioning that I have limited the "Retry" stage to 3 retries. After that it will throw the exception outside the block - so no infinite loops &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Jakob Sørensen&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Sep 2021 06:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65544#M18149</guid>
      <dc:creator>JakobSørensen</dc:creator>
      <dc:date>2021-09-20T06:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65545#M18150</link>
      <description>Ah, makes sense. I do not use that feature because it doesn't work correctly in most versions of Blue Prism. It might only work wrong from the Process layer, but in some circumstance, it causes an immediate session termination. But I think (and as you've shown) it works as intended from the Object layer.&lt;BR /&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Sep 2021 14:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65545#M18150</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2021-09-21T14:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65546#M18151</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;what would happen If we don't 'publish' attach page in the objects ? Is it still going to work when we run the process from Control room ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;New Student&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 11:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65546#M18151</guid>
      <dc:creator>NewStudent</dc:creator>
      <dc:date>2022-01-17T11:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65547#M18152</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't publish an action then that won't be visible itself from the Process Studio, which means you can use that specific action using the Action stage in your process studio. &lt;BR /&gt;&lt;BR /&gt;However, with that being said many times in our solution we do not want to expose all the actions to the process studio, in a way you can say that we want this actions to be private. In this case if we call this Attach action from any other published action in the same business object using a Page stage in the Object Studio then ideally even if we do not publish the Attach action still it will be triggered whenever we call the published action from the Process studio as in the action the 'Attach' action is being called internally via a page reference.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65547#M18152</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-17T14:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: When to attach</title>
      <link>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65548#M18153</link>
      <description>Publishing only affects anything in Control Room when we're talking about publishing a Process. Publishing or not publishing an Object's action is totally different since you can never see an Object listed in Control Room. As Devneet says, the reason for publishing an action is so that it can be directly called by a Process or another Object.&lt;BR /&gt;&lt;BR /&gt;If your Process works to use an action in DEBUG mode (with Process Studio open), then it will work the same from Control Room. The only real difference there is with the speed of execution, so sometimes you'll encounter issues because it's running much faster, but that's a different topic entirely.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 23:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/When-to-attach/m-p/65548#M18153</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2022-01-17T23:27:00Z</dc:date>
    </item>
  </channel>
</rss>

