<?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: Completing user task in unit testing, async behavior in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100663#M69765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not really getting the initial problem. Are you setting the jobExecutorActivate to FALSE? This makes sense the test fails, the async jobs will never be executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use ProcessEngines.getDefaultProcessEngine().getRuntimeService(), ANOTHER process-engine will be created, using activiti.cfg.xml on the class path (eg. src/main/resouces). If this contains an ACTIVE job-executor, it makes sense the tests run…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 09:49:10 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-11-08T09:49:10Z</dc:date>
    <item>
      <title>Completing user task in unit testing, async behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100661#M69763</link>
      <description>I have some unit tests in the same test class checking that a user task appears and completing it. It was working perfectly but now I have set the first service task (before the user task) of my process to async=”true”.So, I had to change the code of the tests to wait that the user task appears afte</description>
      <pubDate>Tue, 06 Nov 2012 21:07:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100661#M69763</guid>
      <dc:creator>sor1</dc:creator>
      <dc:date>2012-11-06T21:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Completing user task in unit testing, async behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100662#M69764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I replace the runtimeService used to start the process by:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngines.getDefaultProcessEngine().getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in stead of the runtimeService proposed by the ActivitiTestCase my tests work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you understand why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 08:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100662#M69764</guid>
      <dc:creator>sor1</dc:creator>
      <dc:date>2012-11-07T08:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Completing user task in unit testing, async behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100663#M69765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not really getting the initial problem. Are you setting the jobExecutorActivate to FALSE? This makes sense the test fails, the async jobs will never be executed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use ProcessEngines.getDefaultProcessEngine().getRuntimeService(), ANOTHER process-engine will be created, using activiti.cfg.xml on the class path (eg. src/main/resouces). If this contains an ACTIVE job-executor, it makes sense the tests run…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100663#M69765</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-11-08T09:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Completing user task in unit testing, async behavior</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100664#M69766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use jobExecutorActivate to TRUE (I have tried to use jobExecutorActivate to FALSE to see if it solves my problem, but now just forget this test)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To start the process, if I use runtimeService (of ActivitiTestCase) or ProcessEngines.getDefaultProcessEngine().getRuntimeService() in both cases the activiti.cfg.xml file used is in src/test/resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So in both case, the property jobExecutorActivate" value="true" is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So the reason why it work with ProcessEngines.getDefaultProcessEngine().getRuntimeService() is still unknown.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 10:19:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/completing-user-task-in-unit-testing-async-behavior/m-p/100664#M69766</guid>
      <dc:creator>sor1</dc:creator>
      <dc:date>2012-11-08T10:19:21Z</dc:date>
    </item>
  </channel>
</rss>

