<?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>Populate Grid from Process Model</title><link>https://community.appian.com/discussions/f/user-interface/14910/populate-grid-from-process-model</link><description>Hello, 
 I would like to show an Array of values inside a grid. These values are stored as Array of CDT inside a Process Model into a variable called Result. I have created a const Rule of type Process Model with my process model: 
 Inside my Interface</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66724?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 15:11:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e661663f-b799-470b-9050-bb74180bbbad</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Ok.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Let&amp;#39;s check that you can ONLY call the &amp;quot;plug-in&amp;quot; from a process model. What is the plug-in? I presume there&amp;#39;s an entry for it in the AppMarket on Appian Community?&lt;/li&gt;
&lt;li&gt;Even if you can only call it in a PM you can still start the PM from a Site. You&amp;#39;ll need to add a &amp;#39;Start Form&amp;#39; to your PM so you can select it as the &amp;#39;Action&amp;#39; in your Site (so you&amp;#39;ll need to create form and set it as the Start Form of your PM). For the moment it can just&amp;nbsp;contain a &amp;#39;Submit&amp;#39; button and nothing else. Assuming you want a synchronous experience for your end-users you&amp;#39;ll have to chain the process model so that the User Input Task that will display your data will be presented immediately after the User has hit &amp;#39;Submit&amp;#39; on the Start Form (if it;s not chained the User Input Task will result in a Task in the Task List i.e an asynchronous experience)&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66723?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 15:02:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:72654cfa-b9e5-40c4-ba39-95f141f7ca6f</guid><dc:creator>rinaldor0001</dc:creator><description>&lt;p&gt;I have to retrieve data from an external service using functions inside a plug-in, the only way I know is to call this function inside a Process Model. In this PM I make a call to the external service end normalize the data into an array of CDT. I&amp;#39;m new to Appian, so I really don&amp;#39;t know other ways to do this.&lt;/p&gt;
&lt;p&gt;My final goal is to show inside a grid the data from the external service, from my Front-end experiences I should make a call to the service, take the data end show them inside a grid. Stop :) &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66722?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 14:49:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:786eb57d-3feb-4973-ab43-d035fba85949</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;The first question I had when I read your initial post (and Is till have this question) was: why are you retrieving the data in a Process Model? You could use the same functionality to retrieve the data directly into a Form, display it in a table and THEN start a Process Model to process the selected case(s)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66721?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 14:46:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:24e707c9-1e81-4141-82be-023d60355e81</guid><dc:creator>rinaldor0001</dc:creator><description>&lt;p&gt;The best solution could be to call different Interface inside a single interface and show this main Interface into Sites. Do you know how to call and display this process Model inside an Interface?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66720?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 14:42:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8fc05a00-f844-4b65-a202-a23020a365e9</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;As it currently stands you&amp;#39;ll have to create a new Tab in your Site, set the type of Tab as an &amp;#39;Action&amp;#39; and pick the process model you&amp;#39;ve just built.&lt;/p&gt;
&lt;p&gt;(This is not the only design you could have opted for, depending on overall&amp;nbsp;problem that you&amp;#39;re trying to solve...)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66719?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 14:32:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0053f076-d15c-4b8b-afd9-7ffabbf74d0b</guid><dc:creator>rinaldor0001</dc:creator><description>&lt;p&gt;Thanks, I think I have done all the steps, but now how I can&amp;nbsp;display&amp;nbsp;my Interface?&lt;/p&gt;
&lt;p&gt;I would like to show the grid inside a Site tab.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66717?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 13:25:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5cdfed81-1fa2-43c8-84ea-605f50a78ad5</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;Rinaldo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Ok, I can see the line of thinking you&amp;#39;re taking and, yes, there are several mistakes here.&lt;/p&gt;
&lt;p&gt;So: the data you want displayed din the form is being stored into an array that is a process variable in a Process Model. Assuming you know that is working, then you need to pass that data from the process model to your form. So I would expect your form to have a rule input that you can accept that data into the form and then can work with it.&lt;/p&gt;
&lt;p&gt;It looks like you think your constant (of type process model?) can make reference to your process variable. But it can&amp;#39;t for the simple reason that the constant is acting as a pointer to a process MODEL and not a process INSTANCE.&lt;/p&gt;
&lt;p&gt;So, back to your process model. I&amp;#39;m second guessing that you&amp;#39;re able to start it (as an &amp;#39;Action&amp;#39; or a &amp;#39;Related Action&amp;#39;) and that there is (my best guess) a Script Task that is deriving the value that you&amp;#39;re storing into the process variable &amp;#39;result&amp;#39;.&lt;/p&gt;
&lt;p&gt;So immediately after this step you&amp;#39;ll need to add a &amp;#39;User Input Task&amp;#39; (which you can think of as a &amp;#39;container&amp;#39; for a form you want to display); and then you&amp;#39;ll need to add your form to this (make sure you&amp;#39;ve added the &amp;#39;result&amp;#39; as a rule input to your form and set it to the correct data type and made it an array!)&lt;/p&gt;
&lt;p&gt;When you import the form to your User Input Task Appian will ask you&amp;nbsp;&amp;quot;&lt;span&gt;Do you want to automatically create node inputs to match your interface&amp;#39;s inputs?&lt;/span&gt;&amp;nbsp;&amp;quot; and you should say &amp;#39;Yes&amp;#39; to this. This will create a variable in the context of the User Input Task that will be mapped to the rule input of your form (it;s worth noting that a rule&amp;nbsp;input on an interface is NOT a variable! It acts as a reference, or a &amp;#39;pointer&amp;#39; to a variable which, in this case, is the variable in the User Input Task that Appian has just kindly created for you!)&lt;/p&gt;
&lt;p&gt;Now you need to get the value from your process variable into the variable in the User Input Task, so go to the &amp;#39;Inputs&amp;#39; tab of your User Input Task and in the &amp;#39;Value&amp;#39; drop-down pick the process variable that holds your data.&lt;/p&gt;
&lt;p&gt;This should get you to where the form now displays the data you&amp;#39;ve retrieved in your process.&lt;/p&gt;
&lt;p&gt;Good luck!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66716?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 12:25:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f941051-c122-4094-a137-c7a2fe2cb393</guid><dc:creator>rinaldor0001</dc:creator><description>&lt;p&gt;Can you provide some example? It&amp;#39;s not so clear for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Populate Grid from Process Model</title><link>https://community.appian.com/thread/66712?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 09:51:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:839e47ed-ed80-4e80-8712-4b6c0c93615b</guid><dc:creator>bhanuprakash1303</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;if you want to display you&amp;nbsp; cdt values in table format ..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First create a process report by using your process model then convert that process&amp;nbsp; report into report by using a!queryrprocessanalytics funtion/&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It will display your cdt data in grid fromat.&lt;/p&gt;
&lt;p&gt;Hope it will help to you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Bhanu,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>