<?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>How to create a local variable of a specific type?</title><link>https://community.appian.com/discussions/f/rules/8017/how-to-create-a-local-variable-of-a-specific-type</link><description>As part of an expression I want to create a local variable of a specific type. I have defined a CDT called CDT_Error and i want to create a the local variable of that type. How do i achieve this? 
 OriginalPostID-223158 
 OriginalPostID-223158</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33415?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 15:48:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:31e257a4-8de8-4fd5-833b-ca8b87a78c20</guid><dc:creator>pieterk</dc:creator><description>Thanks!!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33414?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 15:08:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8ffe38a-4baa-4b55-8005-703f9c8ff546</guid><dc:creator>sikhivahans</dc:creator><description>Also it might be worth considering the namespace during the type construction as this helps in case of identifying a CDT uniquely when there is more than one CDT with same name but with a different namespace.&lt;br /&gt;&lt;br /&gt;Example: &amp;#39;type!{&lt;a&gt;www.xyz.com}CDT_Error&amp;#39;(id:&lt;/a&gt; 1, field1: &amp;quot;A&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33413?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 14:57:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc67629f-fa94-4462-9021-b1b577f1dbe3</guid><dc:creator>sparshs</dc:creator><description>yeah i agree with tim.clarke. Please let us know if you need anything else on this.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33412?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 14:53:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f6a0fca7-d65b-499a-a322-6dac1b1ed66b</guid><dc:creator>Tim</dc:creator><description>local!myVar: type!CDT_Error(id: 1, field1: &amp;quot;A&amp;quot;)&lt;br /&gt;Only specify the field attributes that you want to provide default values for etc.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33411?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 14:42:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22532a1f-afca-4278-9717-18d3900899a9</guid><dc:creator>pieterk</dc:creator><description>how do i use a constructor&lt;br /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to create a local variable of a specific type?</title><link>https://community.appian.com/thread/33410?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 13:57:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e95b4a37-6719-4b60-8fea-374369680701</guid><dc:creator>sparshs</dc:creator><description>you can directly give assign your CDT to  alocal variable. It will take that.Otherwise you can use type constructor as well.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>