<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/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>Smart Service plugin - how to cast Typevalue to a CDT</title><link>https://community.appian.com/discussions/f/plug-ins/19169/smart-service-plugin---how-to-cast-typevalue-to-a-cdt</link><description>Hi All, I have developed a smart service plugin with an input argument (below). So I can pass any type of argument to the parameter. 
 @Input(required = Required.ALWAYS) @Name(&amp;quot;properties&amp;quot;) public void setProperties(TypedValue properties[]) { this.properties</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Smart Service plugin - how to cast Typevalue to a CDT</title><link>https://community.appian.com/thread/75091?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2020 22:56:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7470cb3d-19bd-429b-8886-78a50f77f0d9</guid><dc:creator>jayanthp0001</dc:creator><description>&lt;p&gt;I found one way of fetching the value of TypeValue, below is snippet&lt;/p&gt;
&lt;p&gt;//TypedValue[] properties&lt;/p&gt;
&lt;p&gt;for(int i=0;i&amp;lt;properties.length;i++)&lt;br /&gt; {&lt;br /&gt;&lt;br /&gt; System.out.println(&amp;quot;properties[i].toString() &amp;quot; + properties[i].toString());&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;outputs&lt;/p&gt;
&lt;p&gt;properties[i].toString() TypedValue[it=6462,v={{{DocumentTitle,string,PluginTest}}}]&lt;/p&gt;
&lt;p&gt;properties[i].toString() TypedValue[it=6462,v={{{DocumentTitle,string,hello!'()%@`~#%^&amp;amp;*{}:;}}}]&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;I think i can apply regex and get CDT attribute values.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>