<?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 How to get taskid after the complete method in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskid-after-the-complete-method/m-p/17800#M7893</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a workflow like: startevent -&amp;gt; task1(Assignee:Tom) -&amp;gt; choose sequence flow "agree"&amp;nbsp; -&amp;gt;task2(Assignee:Jerry) -&amp;gt; choose sequence flow "disagree"&amp;nbsp; -&amp;gt; task1&lt;/P&gt;&lt;P&gt;when the flow arrive to task1, i want to set assignee to "Tom" again.&lt;/P&gt;&lt;P&gt;Now i have an idea like:&lt;/P&gt;&lt;P&gt;when the flow arrive to task1, i use complete method, after the complete method, set a local variable "pre_task_id(task1's taskid)" in task2 so that i can use task1's taskid to search in "act_hi_taskinst" table for assignee(Tom), but&amp;nbsp; this method "taskService.setVariableLocal(taskId, variableName, value)"&amp;nbsp; need task2's taskid, how can i get the task2's taskid after complete method?&lt;/P&gt;&lt;P&gt;Or please let me konw if there any better solution&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="222.PNG" style="width: 581px;"&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/224iC6B8AB9E38B15D66/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;</description>
    <pubDate>Fri, 19 Feb 2021 11:22:01 GMT</pubDate>
    <dc:creator>coooong</dc:creator>
    <dc:date>2021-02-19T11:22:01Z</dc:date>
    <item>
      <title>How to get taskid after the complete method</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskid-after-the-complete-method/m-p/17800#M7893</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a workflow like: startevent -&amp;gt; task1(Assignee:Tom) -&amp;gt; choose sequence flow "agree"&amp;nbsp; -&amp;gt;task2(Assignee:Jerry) -&amp;gt; choose sequence flow "disagree"&amp;nbsp; -&amp;gt; task1&lt;/P&gt;&lt;P&gt;when the flow arrive to task1, i want to set assignee to "Tom" again.&lt;/P&gt;&lt;P&gt;Now i have an idea like:&lt;/P&gt;&lt;P&gt;when the flow arrive to task1, i use complete method, after the complete method, set a local variable "pre_task_id(task1's taskid)" in task2 so that i can use task1's taskid to search in "act_hi_taskinst" table for assignee(Tom), but&amp;nbsp; this method "taskService.setVariableLocal(taskId, variableName, value)"&amp;nbsp; need task2's taskid, how can i get the task2's taskid after complete method?&lt;/P&gt;&lt;P&gt;Or please let me konw if there any better solution&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="222.PNG" style="width: 581px;"&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/224iC6B8AB9E38B15D66/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;</description>
      <pubDate>Fri, 19 Feb 2021 11:22:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-taskid-after-the-complete-method/m-p/17800#M7893</guid>
      <dc:creator>coooong</dc:creator>
      <dc:date>2021-02-19T11:22:01Z</dc:date>
    </item>
  </channel>
</rss>

