<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: IVY 3.9 Set Task Activator on a unassigned Task</title><link>https://answers.axonivy.com/questions/1622/ivy-3-9-set-task-activator-on-a-unassigned-task</link><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;We have unassigned Tasks.&lt;/p&gt;
&lt;p&gt;In our selfmade Administration Model - which does a couple of other things too - we have an Assignment function for Tasks.
Neither the function setTaskActivator or delegateTask will assign the Task to the new user.
There's no return value.&lt;/p&gt;
&lt;p&gt;When I do the function with already assigned Tasks, it works fine. 
When I assign Tasks thru the IVY Administrator, it's okay as well.&lt;/p&gt;
&lt;p&gt;Thank you for your help &lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1622/ivy-3-9-set-task-activator-on-a-unassigned-task" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 22 Jan 2016 16:23:50 -0500</lastBuildDate><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1622/ivy-3-9-set-task-activator-on-a-unassigned-task/1639</link><description>&lt;p&gt;You need to prefix the user name with &lt;code&gt;#&lt;/code&gt; if you use setTaskActivator():&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;task.setTaskActivator("#username")
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;To set the activator to a role this is not needed:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;task.setTaskActivator("RoleA")
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Fri, 22 Jan 2016 16:23:50 -0500</pubDate><guid>https://answers.axonivy.com/questions/1622/ivy-3-9-set-task-activator-on-a-unassigned-task/1639</guid></item></channel></rss>