<?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 Wait for Process before attaching in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63418#M16362</link>
    <description>I am currently developing a BO for a process that is "soon to be started". I want Blueprism to wait for the process to be launched.

How I expect to do this:
1) Place a Wait stage
2) Drag the main element (in bold) of the process to the "Element" column.
3) Select either "Wait for Window" or "Wait for process (exe)" to be listed in the condition dropdown.

What actually happens:
The condition dropdown is empty when I drag the main element to the "Element" column and therefore no condition can be waited for.

My question is: How do I wait for a process to run so I can attach to it? I do not want to launch it manually, it will be started as a result of another stage.</description>
    <pubDate>Fri, 11 Nov 2016 18:03:00 GMT</pubDate>
    <dc:creator>__</dc:creator>
    <dc:date>2016-11-11T18:03:00Z</dc:date>
    <item>
      <title>Wait for Process before attaching</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63418#M16362</link>
      <description>I am currently developing a BO for a process that is "soon to be started". I want Blueprism to wait for the process to be launched.

How I expect to do this:
1) Place a Wait stage
2) Drag the main element (in bold) of the process to the "Element" column.
3) Select either "Wait for Window" or "Wait for process (exe)" to be listed in the condition dropdown.

What actually happens:
The condition dropdown is empty when I drag the main element to the "Element" column and therefore no condition can be waited for.

My question is: How do I wait for a process to run so I can attach to it? I do not want to launch it manually, it will be started as a result of another stage.</description>
      <pubDate>Fri, 11 Nov 2016 18:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63418#M16362</guid>
      <dc:creator>__</dc:creator>
      <dc:date>2016-11-11T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Hi Jordi - the conundrum here</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63419#M16363</link>
      <description>Hi Jordi - the conundrum here is that the wait stage (and almost every other) depends on the object being attached, and you can only become attached once the application is running. Here's one solution:Create a page called 'Wait for Attach'Use a navigate to attach in the normal way, but protect the navigate with an exception block and Recover/Resume.If the attach fails, assume that the application has not started yet. After the Resume have a 1 second timeout-wait, then use a calculation to track how many times you have waited in total. If you have waited too long (eg 30 seconds) assume there is a big problem and give up by throwing an exception.If you have not exceeded the maximum wait time, return to the navigate and try to attach again. Eventually, when the application is ready, the attach will succeed and you can carry on.</description>
      <pubDate>Fri, 11 Nov 2016 23:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63419#M16363</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2016-11-11T23:06:00Z</dc:date>
    </item>
    <item>
      <title>Thanks for your comment. I</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63420#M16364</link>
      <description>Thanks for your comment. I found out, however, that the BO ""Utility - Environment"" already has such ""Wait for Application"" action.
Thanks anyway, your solution works as well.</description>
      <pubDate>Mon, 14 Nov 2016 18:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63420#M16364</guid>
      <dc:creator>__</dc:creator>
      <dc:date>2016-11-14T18:05:00Z</dc:date>
    </item>
    <item>
      <title>If the program is busy, or</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63421#M16365</link>
      <description>If the program is busy, or needs time, will the 'Wait for Application' action wait for the process to release?
As an example, if iexplore.exe is caught on some heavy javascript, will this action wait for it to release?  Is there any equal object for Blue Prism that will wait for itself to wait and clear its memory as well?</description>
      <pubDate>Fri, 18 Nov 2016 20:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Wait-for-Process-before-attaching/m-p/63421#M16365</guid>
      <dc:creator>BuzzaT</dc:creator>
      <dc:date>2016-11-18T20:44:00Z</dc:date>
    </item>
  </channel>
</rss>

