<h2>Retriggering the same workflow causes the previous task to reopen</h2><br/><div style="overflow-x:auto"><div><h3>Description</h3><ul style="list-style-position: inside;"><li>When we retrigger the same workflow, the previous tasks and/or approvals that were created are reopened</li></ul></div><div><h3>Cause</h3><ul style="list-style-position: inside;"><li>tasks and approval records created by a workflow are linked to that workflow via the wf_activity field</li><li>this field is only visible when clicking on "Show XML" UI action</li></ul></div><div><h3>Resolution</h3><ul style="list-style-position: inside;"><li>if the expected behavior is to create new task and/or approval records then you will have to clear out the wf_activity field either when the workflow starts or before the workflow ends</li><li>this can be done via a "Run Script" activity</li></ul></div></div>