<?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: Versioning of Process Definitions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219329#M172459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes … so where's the part where the unit test is failing / not doing what you expect? Hard to say with only this bit of info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 May 2016 15:53:06 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-05-18T15:53:06Z</dc:date>
    <item>
      <title>Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219324#M172454</link>
      <description>FACT: The id property is set to {processDefinitionKey}:{processDefinitionVersion}:{generated-id}, *where generated-id is a unique number added to guarantee uniqueness of the process id for the process definition caches in a clustered environment.Supposed I have a .bpmn file with the same processDefi</description>
      <pubDate>Tue, 03 May 2016 04:14:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219324#M172454</guid>
      <dc:creator>mauwarrior</dc:creator>
      <dc:date>2016-05-03T04:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219325#M172455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"org.activiti.engine.ActivitiException:&amp;nbsp; Query return 2 results instead of max 1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Haven't I answered this before? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to use latestVersion() in the query in ace.awsol.ssc.web.controller.core.ProcessController.startProcess(ProcessController.java:154)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:55:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219325#M172455</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-03T12:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219326#M172456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem still persists even though I already added latestVersion on my ProcessController.startProcess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@RequestMapping(value={"/{processKey}/start"}, method=RequestMethod.GET)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public String startProcess(@PathVariable("processKey") String processKey, ModelMap model) {&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessDefinition processDefinition = getActivitiService().getRepositoryService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessDefinitionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionKey(processKey).latestVersion()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried running the codes again and return the same stack trace error as before. I suspect that since I deployed 2 .bpmn files with the same Id, there would be two instances of my process which returns an error on Abstract query? (I'm not sure about this). I wanted to attached a .jpeg file showing what happens after my first deployment and another deployment of the .bpmn but unfortunately I cannot do it here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additional info: I used the same bean for the two deployments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some fixes I had made: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* I tried to change the id of my second workflow and deployed it. Everything goes well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* I deployed the new .bpmn file in a separate database. Everything goes well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SImply saying:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have two workflows with the same set of tasks. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First Workflow:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Task 1, 2, 3, 6, 7,8)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Second Workflow:&amp;nbsp; (Task 1, 2, 3, 4, 5, 6, 7, 8)&amp;gt;&amp;gt;&amp;gt;Task 4 and Task 5 are the additional task, that is why I need to redeploy my Workflow but I am using the same (Controller, model, model config, validator, and java resources) for the two workflows since the second workflow is an upgraded version of the first workflow…If only I could bypass AbstractQuery not limiting the same instance of my deployment I could run both of my process even if they have the same processKey..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everytime I deployed the same .bpmn file over and over again, a new instance of my processes is created and that is why I get the same error on abstract query. If I deployed it 5 times then the message error will say "Query results 5 instead of max 1"…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 06:44:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219326#M172456</guid>
      <dc:creator>mauwarrior</dc:creator>
      <dc:date>2016-05-04T06:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219327#M172457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; "Everytime I deployed the same .bpmn file over and over again, a new instance of my processes is created "&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is the logic as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; .processDefinitionKey(processKey).latestVersion()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This really should not give you two results. Do you have a unit test that shows this, cause I can't see how that is even possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2016 09:36:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219327#M172457</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-10T09:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219328#M172458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;public class ProcessTestRequestToPurchasePH {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; private String filename = "C:\\eclipse-workspace-activiti_v5\\Activiti_Test\\src\\main\\resources\\diagrams\\RequestToPurchasePH.bpmn";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; @Rule&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public ActivitiRule activitiRule = new ActivitiRule();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; @Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void startProcess() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Codes for BPMN Deployment…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RepositoryService repositoryService = activitiRule.getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; repositoryService.createDeployment().addInputStream("RequestToPurchasePH.bpmn20.xml",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new FileInputStream(filename)).deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; RuntimeService runtimeService = activitiRule.getRuntimeService();&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; variableMap = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; variableMap.put("applicant", null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("RequestToPurchasePH", variableMap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; assertNotNull(processInstance.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; System.out.println("id " + processInstance.getId() + " "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + processInstance.getProcessDefinitionId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Above is my junit test. I used the same unit test for my two deployments. I deployed first my first .bpmn file using the junit test above. Then, I need to modified my previous .bpmn file so I need to redeploy it using the same junit test.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 06:05:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219328#M172458</guid>
      <dc:creator>mauwarrior</dc:creator>
      <dc:date>2016-05-11T06:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219329#M172459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes … so where's the part where the unit test is failing / not doing what you expect? Hard to say with only this bit of info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 15:53:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219329#M172459</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-18T15:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219330#M172460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it doesn't trigger any error on my side&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Test&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Rollback(true)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void testProcess() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.debug("");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService.createDeployment().addClasspathResource(RESOURCE_PATH).name(PROCESS_NAME).deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService.createDeployment().addClasspathResource(RESOURCE_PATH).name(PROCESS_NAME).deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; variables = new HashMap&amp;lt;&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Deployment&amp;gt; deployments = processEngine.getRepositoryService().createDeploymentQuery().list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.debug("Deployment list {}",deployments.size());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Deployment deployment : deployments) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.debug("DeploymentId {}, DeploymentName {}",deployment.getId(),deployment.getName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; variables.put("user", "zhangsan");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessInstance pi = runtimeService.startProcessInstanceByKey(PROCESS_NAME, variables);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.debug("ProcessDefinitionId {}",pi.getProcessDefinitionId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.debug("DeploymentId {}",((ExecutionEntity) pi).getProcessDefinition().getDeploymentId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,168 DEBUG [main] (TwoDeploymentTest.java:58) - Deployment list 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,169 DEBUG [main] (TwoDeploymentTest.java:60) - DeploymentId 1, DeploymentName jumpTask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,170 DEBUG [main] (TwoDeploymentTest.java:60) - DeploymentId 5, DeploymentName jumpTask&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,238 DEBUG [main] (StartProcessListener.java:20) - [jumpTask:2:8-9] Process start jumpTask:2:8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,313 DEBUG [main] (TwoDeploymentTest.java:65) - ProcessDefinitionId jumpTask:2:8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2016-05-19 01:17:14,314 DEBUG [main] (TwoDeploymentTest.java:66) - DeploymentId 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 17:20:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219330#M172460</guid>
      <dc:creator>faizal-manan</dc:creator>
      <dc:date>2016-05-18T17:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219331#M172461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;…I was not saying that the unit test failed or not doing what I expected. I am just stuck on the part where the two workflows were already deployed. I can now see in my "Processlist" two of my identical deployments but when I tried to start any of my process, I cannot continue since the error on AbstractQuery triggers the exception even if I followed your suggestions to put .latestVersion() on my ProcessController(). When tried adding .latestVersion() on my codes, my "Processlist" only shows one process and I was happy at first expecting that it resolved the issue. But when I tried to start the process, it still cannot continue since AbstractQuery throws the same exception, "Query results 2 instead of max 1".. Is this a bug?? If every deployments is given a unique instance id, then why it throws exception on query? Is it because I used the same deployment IDs for my two deployments?…I hope this info would be more enough to get the whole picture of the scenario. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow-up please…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219331#M172461</guid>
      <dc:creator>mauwarrior</dc:creator>
      <dc:date>2016-06-07T07:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219332#M172462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Follow-up please…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2016 07:44:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219332#M172462</guid>
      <dc:creator>mauwarrior</dc:creator>
      <dc:date>2016-06-07T07:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Versioning of Process Definitions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219333#M172463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; But when I tried to start the process, it still cannot continue since AbstractQuery throws the same exception, "Query results 2 instead of max 1".. Is this a bug??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's where a unit test helps. You're saying in your list it's showing once … what list? Explorer? Your own UI?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you start your process? When you start by key, it will always use the latest. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We do need to know what code/environment/setup your running before we can answer better. We don't know the full context of at ace.awsol.ssc.web.controller.core.ProcessController.startProcess …&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:37:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/versioning-of-process-definitions/m-p/219333#M172463</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-06-20T11:37:22Z</dc:date>
    </item>
  </channel>
</rss>

