select taskid from task where stepID+flowID in (select stepID+flowID from stepdefinition where steptype = -3) order by taskid