<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How can we assign a task to particular identity by programming</title><link>https://www.aras.com/community/f/getting-started/3337/how-can-we-assign-a-task-to-particular-identity-by-programming</link><description>Hi,

I want to assign a task(i.e Review of Document , which is related to part(Part Document Relationship)) to the some team identity when I saved a Part.

How can I achieve this by programming(javascript)?

till now, I am able to get the Team ID, and</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: How can we assign a task to particular identity by programming</title><link>https://www.aras.com/community/thread/688?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 07:56:09 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:8d75df19-c0c2-45c7-91c4-4a32e0099893</guid><dc:creator>Maddy</dc:creator><description>Hi Zahar,

Thanks for your reply.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can we assign a task to particular identity by programming</title><link>https://www.aras.com/community/thread/653?ContentTypeID=1</link><pubDate>Thu, 20 Jul 2017 05:44:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:1ff6df65-90c3-4dc5-8e2f-eb4d3701254e</guid><dc:creator>Zahar Chernov</dc:creator><description>To achieve this, you need to do something like this:
&lt;ol&gt;
 	&lt;li&gt;Create Workflow (with start + review + end activities)&lt;/li&gt;
 	&lt;li&gt;Assign it to Part ItemType (don&amp;#39;t mark as default)&lt;/li&gt;
 	&lt;li&gt;Create new method (c#) with following code:
&lt;blockquote&gt;Item itm = this.newItem(&amp;quot;Workflow Map&amp;quot;, &amp;quot;get&amp;quot;);
itm.setAttribute(&amp;quot;select&amp;quot;, &amp;quot;id&amp;quot;);
itm.setProperty(&amp;quot;name&amp;quot;, &amp;quot;{YOUR_WORKFLOW_NAME}&amp;quot;);
itm = itm.apply();
string wf_id = itm.getID();
Item wf_process = this.instantiateWorkflow(wf_id);
return wf_process.apply(&amp;quot;startWorkflow&amp;quot;);&lt;/blockquote&gt;
&lt;/li&gt;
 	&lt;li&gt;Create new action (server side, with item context) and set your method for this action&lt;/li&gt;
 	&lt;li&gt;Assign you action to Part ItemType&lt;/li&gt;
&lt;/ol&gt;
`&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>