<?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 unit testing of a complex process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unit-testing-of-a-complex-process/m-p/147904#M103246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to develop some unit tests using Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All of the unit tests I've seen so far make the process to start from the beginning. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, a process is often made up of several activities and gateways and I'd like to create a unit test which verifies the correct behavior of a single step of the workflow. So, is it possible to set the state of a process to an arbitrary value without completing the preceding tasks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, consider a process which contains three user tasks (Start–&amp;gt;A–&amp;gt;B–&amp;gt;C–&amp;gt;END) and an unit-test which must verify only the correctness of the transition from user task B to C. Is it possible to create a process instance which has B as current activity and an a certain set of execution variables? I don't want to call "complete" on task A , of course.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Claudio &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 09:47:42 GMT</pubDate>
    <dc:creator>tassoc1</dc:creator>
    <dc:date>2013-06-17T09:47:42Z</dc:date>
    <item>
      <title>unit testing of a complex process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unit-testing-of-a-complex-process/m-p/147904#M103246</link>
      <description>Hi All,I'm going to develop some unit tests using Activiti.All of the unit tests I've seen so far make the process to start from the beginning. Unfortunately, a process is often made up of several activities and gateways and I'd like to create a unit test which verifies the correct behavior of a sin</description>
      <pubDate>Mon, 17 Jun 2013 09:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unit-testing-of-a-complex-process/m-p/147904#M103246</guid>
      <dc:creator>tassoc1</dc:creator>
      <dc:date>2013-06-17T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: unit testing of a complex process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unit-testing-of-a-complex-process/m-p/147905#M103247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, unfortunately that is not possible with the current testing code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do agree it is something which is really useful to have. As a matter of fact, I remember doing the same thing years ago on jBPM 3 …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tricky thing here is if you want history or not, how you provide the variables of the process, etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it be OK to have an 'auto-drive' through the process or do you really need to set the execution pointers directly to the stte you want (the latter might be tricky).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I forwarded this thread to the other devs … maybe they have some grand insight here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 16:23:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unit-testing-of-a-complex-process/m-p/147905#M103247</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-06-17T16:23:38Z</dc:date>
    </item>
  </channel>
</rss>

