I have a dynamically created workflow (created by scripts calling TeamSite WF libraries) using a wft file.
The owner of all the tasks is set during initial creation to a default 'SYSTEM' user.
Here is the code snippet.
<!-- ============================================================ -->
<grouptask name="Editor_Work" description="Edit - apply content changes"
retainowner="t" start = "f" lock="f">
.....
<succ v="Push_To_Web_Staging"/>
..........
</grouptask>
<!-- ============================================================ -->
<externaltask name = 'Push_To_Web_Staging' owner="__TAG__('iw_user');" start = "f"
description="Pushing content to Staging" >
.....
<succ v = 'ReviewInPreview'/>
........
</externaltask>
<!-- ============================================================ -->
<usertask name="ReviewInPreview" owner="__TAG__('iw_user');" description="Please check files"
start = "f" lock="f">
..............
</usertask>
<!-- ============================================================ -->
Subsequent tasks should be owned by the OWNER of the user who took ownership of the grouptask.
But it doesn't get changed, instead the 'SYSTEM' user is still listed as 'OWNER'.
Please note, i am not using any CGI form - there is no initial input from user\usertask.
I suppose i could try to do GetOwner and then WFtask:

etOwner in the externaltask.
But is there some reason 'retainowner' doesn't work ?
Thanks. Any suggestions\hints would be appreciated.
Edited by rishi on 04/04/03 03:03 PM (server time).