<?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 Problem with finishing process after receiveTask or manualTask in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-finishing-process-after-receivetask-or-manualtask/m-p/28815#M12289</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem with finish of the process.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current end flow looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 296px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/235iFC961CFF3A029BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have two last branches. In the Manual Task I am waiting for execution of both branches.&amp;nbsp;&lt;BR /&gt;In the service class I am waiting for execution and when both variables are filled up, I want to push frocess further, which should be end. My code looks like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public void listen(DelegateExecution delegateExecution, String resultVar1, String resultVar2) {
        Object variable = delegateExecution.getVariable(resultVar1);
        Object variable2 = delegateExecution.getVariable(resultVar2);
        if (variable != null &amp;amp;&amp;amp; variable2 != null) {
            runtimeService.trigger(delegateExecution.getId());
        }
    }&lt;/PRE&gt;&lt;P&gt;Code executes successfuly, but process is not finished, it stays in the state with red arrow into end event&lt;/P&gt;&lt;P&gt;I tried with Manual task, Receive task, but nothing helps. Is there any other option?&amp;nbsp;&lt;BR /&gt;The last idea I have is to put user task, and then complete user task. But this does not look properly, since this is nothing related to user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 23 Nov 2021 15:33:16 GMT</pubDate>
    <dc:creator>Olrajt</dc:creator>
    <dc:date>2021-11-23T15:33:16Z</dc:date>
    <item>
      <title>Problem with finishing process after receiveTask or manualTask</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-finishing-process-after-receivetask-or-manualtask/m-p/28815#M12289</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem with finish of the process.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My current end flow looks like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 296px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/235iFC961CFF3A029BD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have two last branches. In the Manual Task I am waiting for execution of both branches.&amp;nbsp;&lt;BR /&gt;In the service class I am waiting for execution and when both variables are filled up, I want to push frocess further, which should be end. My code looks like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;public void listen(DelegateExecution delegateExecution, String resultVar1, String resultVar2) {
        Object variable = delegateExecution.getVariable(resultVar1);
        Object variable2 = delegateExecution.getVariable(resultVar2);
        if (variable != null &amp;amp;&amp;amp; variable2 != null) {
            runtimeService.trigger(delegateExecution.getId());
        }
    }&lt;/PRE&gt;&lt;P&gt;Code executes successfuly, but process is not finished, it stays in the state with red arrow into end event&lt;/P&gt;&lt;P&gt;I tried with Manual task, Receive task, but nothing helps. Is there any other option?&amp;nbsp;&lt;BR /&gt;The last idea I have is to put user task, and then complete user task. But this does not look properly, since this is nothing related to user.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:33:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-finishing-process-after-receivetask-or-manualtask/m-p/28815#M12289</guid>
      <dc:creator>Olrajt</dc:creator>
      <dc:date>2021-11-23T15:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with finishing process after receiveTask or manualTask</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-finishing-process-after-receivetask-or-manualtask/m-p/28816#M12290</link>
      <description>&lt;P&gt;You should join your fork using an exclusive gateway. It ensures both of your synchronized service tasks are completed before forwarding to next task (receive task, in your case).&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 16:14:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-finishing-process-after-receivetask-or-manualtask/m-p/28816#M12290</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2021-11-24T16:14:04Z</dc:date>
    </item>
  </channel>
</rss>

