<?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 cast to type Process Model?</title><link>https://community.appian.com/discussions/f/data/17685/how-to-cast-to-type-process-model</link><description>How can I cast a value to datatype &amp;quot;Process model&amp;quot;? 
 I want to dynamically start a process model using 
 a!startProcess ( processModel , processParameters , onSuccess , onError ). I know that I can create a constant of type process model and pass it</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to cast to type Process Model?</title><link>https://community.appian.com/thread/69793?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 11:45:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11b314ca-7d89-4c0b-9d40-ea8bd4377c60</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Just an observation - I&amp;#39;ve seen this sort of pattern implemented in other languages/platforms and whist it is clever and flexible it can be really hard to debug when it goes wrong. Given that you can&amp;#39;t dynamically create a process model at run time (which would be a frightening prospect!) then I&amp;#39;m not sure why living with a static model isn&amp;#39;t palatable? You have the option of using a Appian Decision to dynamically return references to Process Models based upon rules (although you can only execute the using the Start Process smart service and therefore asynchronously by default).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to cast to type Process Model?</title><link>https://community.appian.com/thread/69704?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 00:08:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9ab4c896-3a79-4ef3-a13e-713b3db0ba75</guid><dc:creator>sriramn</dc:creator><description>&lt;p&gt;Hi Chanakya, thanks for the response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to cast to type Process Model?</title><link>https://community.appian.com/thread/69703?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2019 00:07:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ce0bc87c-2190-4a5f-8ace-6af0fed8ad6d</guid><dc:creator>sriramn</dc:creator><description>&lt;p&gt;Hi Mike,&lt;/p&gt;
&lt;p&gt;Thanks for the response. I used a decision table for mapping process model with the application name, as&amp;nbsp;it is equally configurable and faster when compared to retrieving from database.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to cast to type Process Model?</title><link>https://community.appian.com/thread/69636?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2019 14:36:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1dbc8c82-ce62-4153-b0cb-e5051ade5d72</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;&lt;em&gt;a!startProcess()&lt;/em&gt; only needs the&amp;nbsp;&lt;strong&gt;process model ID&lt;/strong&gt;, and it doesn&amp;#39;t need to be type cast.&amp;nbsp; The additional hurdle is that the process model ID is environment-specific (as already mentioned by Chanakya) - so if you&amp;#39;re writing anything to the DB, it should be the UUID, and then you can use either the &lt;a href="/b/appmarket/posts/process-model-details"&gt;Process Model Details&lt;/a&gt;&amp;nbsp;plugin or the &lt;a href="/b/appmarket/posts/content-tools"&gt;Content Tools&lt;/a&gt; plugin to get the process model ID per the UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to cast to type Process Model?</title><link>https://community.appian.com/thread/69631?ContentTypeID=1</link><pubDate>Sun, 29 Sep 2019 23:31:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ee647261-db57-4d63-9b1e-d1e08c6d1fa7</guid><dc:creator>Chanakya Volam</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/sriramn"&gt;sriramn&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;AFAIK there is no way to dynamically call a process by its ID from database and one more thing to add is when a process model is deployed to higher env the process model ID changes only thing that remains constant is the UUID&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>