<?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 How to wait for process to reach a user task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178190#M131320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have a use case where we're starting an Activiti process within a web app; the actual process that we start might vary depending on what the user has done within our app prior to that point.&amp;nbsp; After starting the process, we want to allow it to proceed until it reaches a user task, and then we want to get the task and get the form key of the task, so we can redirect to a controller in our app and present the corresponding form to the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We believe we're experiencing a race condition . . . sometimes, we're apparently retrieving the task / form key BEFORE the process has reached the user task (i.e., it's still doing the preliminary service tasks that are part of the workflow process, prior to the user task), and so we get a null form key.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way, via the API, for us to allow the process (which we just started) to proceed until it reaches a user task, and THEN we'd get the task and form key?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 14:34:22 GMT</pubDate>
    <dc:creator>kilsen</dc:creator>
    <dc:date>2014-05-30T14:34:22Z</dc:date>
    <item>
      <title>How to wait for process to reach a user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178190#M131320</link>
      <description>We have a use case where we're starting an Activiti process within a web app; the actual process that we start might vary depending on what the user has done within our app prior to that point.&amp;nbsp; After starting the process, we want to allow it to proceed until it reaches a user task, and then we want</description>
      <pubDate>Fri, 30 May 2014 14:34:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178190#M131320</guid>
      <dc:creator>kilsen</dc:creator>
      <dc:date>2014-05-30T14:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to wait for process to reach a user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178191#M131321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the default behavior:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A-&amp;gt;B-&amp;gt;C-&amp;gt;User task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If A,B,C are service tasks, the thread only returns if A,B and C are done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I suspect you've made a service task that is before your user task asynchronous? That would explain what you see.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:39:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178191#M131321</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-02T09:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to wait for process to reach a user task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178192#M131322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. We had added some console logging that included the thread id, and realized that the service task (the process only has one initial service task) was operating in the main thread, and was completing up to the first user task, at which time the thread returned to the caller. But we checked our service task and it's definitely not asynchronous. The problem is intermittent and that's why we thought it was a race condition. We'll dig a little deeper. Thanks again for confirming the default behavior.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 12:12:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-wait-for-process-to-reach-a-user-task/m-p/178192#M131322</guid>
      <dc:creator>kilsen</dc:creator>
      <dc:date>2014-06-02T12:12:38Z</dc:date>
    </item>
  </channel>
</rss>

