<?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: When startProcessInstanceByKey gives the instance back ? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126555#M89027</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe this should be mentioned very early in the docs…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know … async is a pretty complex thing to grasp … &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Definitely if you don't understand the regular transactional way of execution …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i put "async = true" then it doesn t find my class "com.test.ActivitiTask" and doesn t lauch my method execute…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Huh? The jobexecutor (which runt he async jobs) lives in the same JVM as the engine …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't execute it immediataly of course. And also, you have to make sure the jobexecutor is actually activated in the process engine configuration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 16:20:23 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-12-06T16:20:23Z</dc:date>
    <item>
      <title>When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126549#M89021</link>
      <description>Hi all &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;A little question but SO important for me.I ve created a workflow instance launcher with the code &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessInstance instance = runtimeService.startProcessInstanceByKey(processKey);‍But something strange about that !In my workflow, i have two javaservicetask then a human task and i ve seen th</description>
      <pubDate>Wed, 05 Dec 2012 10:46:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126549#M89021</guid>
      <dc:creator>vire7777</dc:creator>
      <dc:date>2012-12-05T10:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126550#M89022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;But could i do something for having it directly after the instance launch because i need it before the instance reaches the first javaservice task.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;If you make set the first task as &lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;&lt;STRONG&gt;async=true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, then &lt;/SPAN&gt;&lt;SPAN style="color:#008000;"&gt;&lt;STRONG&gt;startProcessInstanceByKey&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;will return immediately (the workflow is now running in a new thread)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 14:10:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126550#M89022</guid>
      <dc:creator>sothach</dc:creator>
      <dc:date>2012-12-05T14:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126551#M89023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe this should be mentioned very early in the docs…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 15:00:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126551#M89023</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-05T15:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126552#M89024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But if i want to use "async=true", i don t know why, the workflow don't find my class anymore…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 09:59:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126552#M89024</guid>
      <dc:creator>vire7777</dc:creator>
      <dc:date>2012-12-06T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126553#M89025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;which class?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:15:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126553#M89025</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-12-06T10:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126554#M89026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My javaservicetask calls a class "com.test.ActivitiTask"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i do not set async, then it calls my Execute method on this class "com.test.ActivitiTask"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i put "async = true" then it doesn t find my class "com.test.ActivitiTask" and doesn t lauch my method execute…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 10:38:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126554#M89026</guid>
      <dc:creator>vire7777</dc:creator>
      <dc:date>2012-12-06T10:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126555#M89027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe this should be mentioned very early in the docs…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know … async is a pretty complex thing to grasp … &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Definitely if you don't understand the regular transactional way of execution …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If i put "async = true" then it doesn t find my class "com.test.ActivitiTask" and doesn t lauch my method execute…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Huh? The jobexecutor (which runt he async jobs) lives in the same JVM as the engine …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't execute it immediataly of course. And also, you have to make sure the jobexecutor is actually activated in the process engine configuration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 16:20:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126555#M89027</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-06T16:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126556#M89028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've putted jobExecutorActivate on "True" but nothing else ! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway i really doesn't unsderstand why it doesn't find my class and i have a "class not found" error message however when the task isn't async, it works perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've read the doc and there's nothing about it… I understand how it works and that s why i m so disapointed…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other question :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be possible that, because i'm deploying my xml on activiti-explorer, when i lauch the process instance and engine in my application (not activiti explorer), activiti try to search my class (in the async javaservicetask) in activiti-explorer evenif i really don't think so (logically, it would search, as you said, in the same JVM)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:38:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126556#M89028</guid>
      <dc:creator>vire7777</dc:creator>
      <dc:date>2012-12-07T09:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126557#M89029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Maybe this should be mentioned very early in the docs…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I don't know … async is a pretty complex thing to grasp … &lt;BR /&gt;Definitely if you don't understand the regular transactional way of execution …&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a reference that if you want/actually need something like this,&amp;nbsp; making the first task async is needed. Point out that it is 'advanced' usage, and just point to the async chapter… Nothing more&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126557#M89029</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-07T09:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126558#M89030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Other question :&lt;BR /&gt;Could it be possible that, because i'm deploying my xml on activiti-explorer, when i lauch the process instance and engine in my application (not activiti explorer), activiti try to search my class (in the async javaservicetask) in activiti-explorer evenif i really don't think so (logically, it would search, as you said, in the same JVM)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes… classes should be available to ALL jvm's that do something on the process… If the job executor is in the explorer and the classes are not, you get this error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:52:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126558#M89030</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-07T09:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126559#M89031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought the job executor was created with the creation of the process engine instance, not at the xml deployment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, i ll do a test&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 10:10:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126559#M89031</guid>
      <dc:creator>vire7777</dc:creator>
      <dc:date>2012-12-07T10:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: When startProcessInstanceByKey gives the instance back ?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126560#M89032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The explorer also has a process engine…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 10:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/when-startprocessinstancebykey-gives-the-instance-back/m-p/126560#M89032</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-12-07T10:34:43Z</dc:date>
    </item>
  </channel>
</rss>

