<?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 Alfresco workflow - multi instance task with completion condition in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-workflow-multi-instance-task-with-completion-condition/m-p/125606#M34241</link>
    <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I need help with my Activity workflow in Alfresco CE 7.4. I have approving user task with set multi instance. Task is very simple - users chooses from approve or reject. What I need is if one user choose reject, whole task and workflow ends. I tried to use completion condition to end user task and it works. But only for setting sequential=true (next user task via multi instance is not created). If i set sequential=false (so all users tasks are created at start of task) it don't work.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wf_error.png" style="width: 453px;"&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/1769i6924F0E73A130EB6/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 get PSQL error that gets ACS into infinite loop.&lt;/P&gt;&lt;PRE&gt;org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_parent" on table "act_ru_execution"
Detail: Key (id_)=(4575) is still referenced from table "act_ru_execution".&lt;/PRE&gt;&lt;P&gt;I found that problem is in terminate other users tasks, but for me is strange this ACS cant handle this. I work with alfresco for few years and never get PSQLException from application logic. I tried similar workaround throw signals and setting cancel activity = true and get same error. I even tried to do it via java lisiners and workflowService.endTask() and still getting same error.&lt;/P&gt;&lt;P&gt;Is this bug or im doing something wrong? How to handle my case?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 02 Sep 2024 13:03:05 GMT</pubDate>
    <dc:creator>Dagoo</dc:creator>
    <dc:date>2024-09-02T13:03:05Z</dc:date>
    <item>
      <title>Alfresco workflow - multi instance task with completion condition</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-workflow-multi-instance-task-with-completion-condition/m-p/125606#M34241</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I need help with my Activity workflow in Alfresco CE 7.4. I have approving user task with set multi instance. Task is very simple - users chooses from approve or reject. What I need is if one user choose reject, whole task and workflow ends. I tried to use completion condition to end user task and it works. But only for setting sequential=true (next user task via multi instance is not created). If i set sequential=false (so all users tasks are created at start of task) it don't work.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="wf_error.png" style="width: 453px;"&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/1769i6924F0E73A130EB6/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 get PSQL error that gets ACS into infinite loop.&lt;/P&gt;&lt;PRE&gt;org.postgresql.util.PSQLException: ERROR: update or delete on table "act_ru_execution" violates foreign key constraint "act_fk_exe_parent" on table "act_ru_execution"
Detail: Key (id_)=(4575) is still referenced from table "act_ru_execution".&lt;/PRE&gt;&lt;P&gt;I found that problem is in terminate other users tasks, but for me is strange this ACS cant handle this. I work with alfresco for few years and never get PSQLException from application logic. I tried similar workaround throw signals and setting cancel activity = true and get same error. I even tried to do it via java lisiners and workflowService.endTask() and still getting same error.&lt;/P&gt;&lt;P&gt;Is this bug or im doing something wrong? How to handle my case?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 02 Sep 2024 13:03:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-workflow-multi-instance-task-with-completion-condition/m-p/125606#M34241</guid>
      <dc:creator>Dagoo</dc:creator>
      <dc:date>2024-09-02T13:03:05Z</dc:date>
    </item>
  </channel>
</rss>

