<?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 Re: Starting process executes all tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66576#M42333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;or vote for &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-126" rel="nofollow noopener noreferrer"&gt;ACT-126&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2011 15:42:49 GMT</pubDate>
    <dc:creator>ronald_van_kuij</dc:creator>
    <dc:date>2011-08-23T15:42:49Z</dc:date>
    <item>
      <title>Starting process executes all tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66572#M42329</link>
      <description>I've created process with two task MailTask and ScriptTask (execute script task take 2 minutes). I start the process ProcessInstance processInstance = runtimeService.startProcessInstanceById(processId)‍ and get the processInstance after all tasks were executed. Is this normal behaviour in Activiti?</description>
      <pubDate>Mon, 22 Aug 2011 08:49:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66572#M42329</guid>
      <dc:creator>sgarbaciak</dc:creator>
      <dc:date>2011-08-22T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process executes all tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66573#M42330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the normal behaviour, as long as you don't have wait states (user task, receive task) in your process model, the process is executed synchronously. If your process contains wait states, the process runs to the first wait state and gets persisted there, the startProcessXXX() method then returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Aug 2011 13:47:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66573#M42330</guid>
      <dc:creator>gant</dc:creator>
      <dc:date>2011-08-22T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process executes all tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66574#M42331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for explanation. So I have second question: I plan to implement complex ScriptTask (aproximetly it takes 3-5 hours) after start process. Is there any method to run this script&amp;nbsp; asynchronously?&amp;nbsp; I need a information that process start properly and after that in background execute ScriptTask.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 07:39:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66574#M42331</guid>
      <dc:creator>sgarbaciak</dc:creator>
      <dc:date>2011-08-23T07:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process executes all tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66575#M42332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sure. What you can do is include a receive task before the complex script task. Then, when the process is started you get the process instance info back and then you can signal the process instance in a separate thread or Java 6 Future to let the script task run asynchronously.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 09:54:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66575#M42332</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-08-23T09:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Starting process executes all tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66576#M42333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;or vote for &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-126" rel="nofollow noopener noreferrer"&gt;ACT-126&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2011 15:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/starting-process-executes-all-tasks/m-p/66576#M42333</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-23T15:42:49Z</dc:date>
    </item>
  </channel>
</rss>

