<?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: Start and access new process instance from running process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165219#M118917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for helping with the issue. We were able to resolve it by using two asynchronous script tasks, as you suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flurina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jan 2014 08:07:00 GMT</pubDate>
    <dc:creator>flurina</dc:creator>
    <dc:date>2014-01-06T08:07:00Z</dc:date>
    <item>
      <title>Start and access new process instance from running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165215#M118913</link>
      <description>After upgrading from Activiti 5.10 to 5.14 we're facing a problem with a ScriptTask of a running process that needs to start another ProcessInstance.As you can see in the code below, we want to start a new ProcessInstance and afterwards access its first task to add a CandidateGroup to it.RepositoryS</description>
      <pubDate>Tue, 26 Nov 2013 09:13:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165215#M118913</guid>
      <dc:creator>flurina</dc:creator>
      <dc:date>2013-11-26T09:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Start and access new process instance from running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165216#M118914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you share the process definition? If it's possible to create a unit test showing the issue, that would be even better.&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, 26 Nov 2013 12:57:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165216#M118914</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-26T12:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Start and access new process instance from running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165217#M118915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I uploaded a Maven project showing the issue. You can find it here &lt;/SPAN&gt;&lt;A href="https://www.dropbox.com/sh/k79hjzmu407jfvs/SEy-aY23DS" rel="nofollow noopener noreferrer"&gt;https://www.dropbox.com/sh/k79hjzmu407jfvs/SEy-aY23DS&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As you will see, the test does not finish now, because the ScriptTask cannot access the newly created ProcessInstance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you change the Activiti version back to 5.10 everything will run through smoothly and the test will succeed. I don't think that the issue is located in version 5.14 though, as the same problem already occurs from version 5.11 on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flurina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 10:38:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165217#M118915</guid>
      <dc:creator>flurina</dc:creator>
      <dc:date>2013-11-27T10:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Start and access new process instance from running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165218#M118916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for uploading your project that makes it a lot easier to discuss.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that the process that's started by the script task is not yet committed to the database before the "parent" process reaches a wait state. So that's why you won't get a user task back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed your example, to include a second asynchronous script task that does the task query. So the first script task is only starting the process instance. And that works fine. Instead of using a script task to start the other process instance you could also use a call activity.&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>Thu, 28 Nov 2013 12:53:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165218#M118916</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-28T12:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Start and access new process instance from running process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165219#M118917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for helping with the issue. We were able to resolve it by using two asynchronous script tasks, as you suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Flurina&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 08:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-and-access-new-process-instance-from-running-process/m-p/165219#M118917</guid>
      <dc:creator>flurina</dc:creator>
      <dc:date>2014-01-06T08:07:00Z</dc:date>
    </item>
  </channel>
</rss>

