<?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: How to implemnt a process with back step flow ?? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219142#M172272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are calling your test function again. Which means these lines get execution again:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;repositoryService.createDeployment().addClasspathResource("Cong�sbpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance pi= runtimeService.startProcessInstanceByKey("simpleProcess");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are redeploying your process definition and starting a new process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You now have &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* 1 process instance looped back to task 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* 1 new process instance that is in task 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence why the query says you have two results, which is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix this, you need to extract this in separate methods, not reuse your test method again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2016 07:12:35 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-07-29T07:12:35Z</dc:date>
    <item>
      <title>How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219135#M172265</link>
      <description>Hello Everybody!!I have to implement a process with a gateway with three outgoing conditional flows : 2 flows going to the End event, and the other is going back to the first task. How can i implement this at runtime : when the execution reaches this task : all the process have to be repeated !Have</description>
      <pubDate>Tue, 26 Jul 2016 21:28:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219135#M172265</guid>
      <dc:creator>lobnakh</dc:creator>
      <dc:date>2016-07-26T21:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219136#M172266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't get your question here. But with what I understood, you will have to set a condition on the 2 conditional flows and set the once back as a default flow. So when both the conditions fail, the process will get back to step 1 and proceed. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:48:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219136#M172266</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2016-07-27T11:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219137#M172267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't you add a sequence flow that goes to the beginning of the process? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean with 'at runtime' ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 11:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219137#M172267</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-27T11:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219138#M172268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to say by 'at runtime' , in my java code : after starting my process instance, i must to querry the tasks for example :Task task1=taskService.createTaskQuery().singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;taskService.complete(task1.getId()); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And so on, until querriying all the process tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the case of the outgoing flow of the gateway, which goes back to the first task, surely all the process will be repeated(there are variables that will be changed , so it is not an infinite loop) ! My question is how can i implement the section of code that will be repeated .How can i optimise my code !! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wish i was more clear in my response. Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 16:22:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219138#M172268</guid>
      <dc:creator>lobnakh</dc:creator>
      <dc:date>2016-07-27T16:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219139#M172269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not yet following: are you looking for the BPMN to do this (if so, simply loop back to the first step, using exclusive gateways) or how to query this in java?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:45:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219139#M172269</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-28T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219140#M172270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly, how to query this in java ?? can i use a recursive function !! &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:52:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219140#M172270</guid>
      <dc:creator>lobnakh</dc:creator>
      <dc:date>2016-07-28T09:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219141#M172271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use a recursive function but i had an error to handle !!To better understand my problem, please check my java code attached here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the error is : org.activiti.engine.ActivitiException: Query return 2 results instead of max 1 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PS : when the second condition in the loop if is true, the function simpleProcessTest() is called, in this line : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Task task1 = taskService.createTaskQuery().singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The exception is thrown : It finds two tasks named : "créer une demande de congé"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't understand this replication, because the first task as named , is already completed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can somebody help me to solve this problem please ??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 12:12:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219141#M172271</guid>
      <dc:creator>lobnakh</dc:creator>
      <dc:date>2016-07-28T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219142#M172272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are calling your test function again. Which means these lines get execution again:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;repositoryService.createDeployment().addClasspathResource("Cong�sbpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance pi= runtimeService.startProcessInstanceByKey("simpleProcess");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are redeploying your process definition and starting a new process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You now have &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* 1 process instance looped back to task 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* 1 new process instance that is in task 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence why the query says you have two results, which is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix this, you need to extract this in separate methods, not reuse your test method again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 07:12:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219142#M172272</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-29T07:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to implemnt a process with back step flow ??</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219143#M172273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I will try it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 11:08:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-implemnt-a-process-with-back-step-flow/m-p/219143#M172273</guid>
      <dc:creator>lobnakh</dc:creator>
      <dc:date>2016-07-29T11:08:37Z</dc:date>
    </item>
  </channel>
</rss>

