Arbitrary TaskInstance Ownership via the Process View
All,
I've created a workflow that will utilize at Process View to start a new TaskInstance. The method I am using was found in the second post of the following thread:
http://forum.java.sun.com/thread.jspa?forumID=764&threadID=5062399
I've run into a problem where the owner of the new workflow is the user that initiated the original workflow. The method described in the post describes populating thetask.owner argument with a user (in this case Configurator). I've assigned that value to a user I've created, but when the new workflow initiates the WF_CASE_OWNER is set to the original user and the TaskInstance shows up in the original user's open requests.
Does anyone have any solutions/workarounds that would successfully set the new TaskInstance owner to a user I specify?
Thanks,
Conor
[854 byte] By [
cmulcrona] at [2007-11-26 20:40:23]

# 1
Hi,I am not sure whether it works or not, but you can try. Try with below code in between checkout and check in view, here resview is view name<set name='resview.task.owner'><s>USER</Ss> </set>Thanks
# 2
Hey,
Thanks for the reply. I tried your idea and the result is the same. I rooted around in the repository database and confirmed my suspicion that the user assigned as the owner of the task is not getting altered. There is just a variable called owner that is present in the newly created TaskInstance.
I forgot to mention, I'm using IDM 7 if it makes a difference. Anyone else with ideas?
# 3
Ok, so I found a solution to the problem. By adding the argument "subject" to the check in action, you can designate the correct owner of the new task. Code is as follows.
<Action id='2' name='Check in Views' application='com.waveset.session.WorkflowServices'>
<Iterate for='newView' in='newViews'/>
<Argument name='op' value='checkinView'/>
<Argument name='endUser' value='true'/>
<Argument name='view' value='$(newView)'/>
<Argument name='subject' value='$(selectedUser)/>
</Action>
Where selectedUser is the new owner of the task. Hope this helps someone in the future.'>