<?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 Refresh an Interface After a Process Model ?</title><link>https://community.appian.com/discussions/f/user-interface/37539/how-to-refresh-an-interface-after-a-process-model</link><description>I am working on a project where I need to refresh an entire interface after a process model has completed execution. I need to ensure that once this process model finishes executing, the associated interface is refreshed to reflect any changes. 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to Refresh an Interface After a Process Model ?</title><link>https://community.appian.com/thread/140806?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 06:10:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d79291f3-6da8-4c7d-b346-7889b039eddf</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The trick with Appian is to not try to refresh &amp;quot;the interface&amp;quot;, but refresh the data the interface displays. I assume that you store some values to local variables. You can use a!refreshVariable to make those refresh.&lt;/p&gt;
&lt;p&gt;In such tricky situations, where I need very clear control on when something refreshes, I use a local variable &amp;quot;refreshCounter&amp;quot;. For the locals I want refreshed, I use a!refreshVariable&amp;nbsp;like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!refreshCounter: 0,
  local!yourLocale: a!refreshVariable(
    value: &amp;lt;YOUR_VALUE&amp;gt;
    refreshOnVarChange: local!refreshCounter
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can then use a!save() to increase that counter from anywhere within the interface.&lt;/p&gt;
&lt;p&gt;BTW, how did you come up with &amp;quot;a!refreshContent&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Refresh an Interface After a Process Model ?</title><link>https://community.appian.com/thread/140795?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 04:34:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:41e9ed6b-7bd4-487c-bc1c-b5f6aad57146</guid><dc:creator>Soma</dc:creator><description>&lt;p&gt;Make sure your all your nodes in the process model are activity chained.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can also try having all your local variable in the refreshVariable() with refresh on variable change configuration. On the Onsuccess parameter of start process change the value of the variable on which the interface&amp;#39;s local variables are refreshed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to Refresh an Interface After a Process Model ?</title><link>https://community.appian.com/thread/140793?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2024 02:02:08 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c8a6083-2534-4419-b961-0f35522106f6</guid><dc:creator>codyvela01</dc:creator><description>&lt;p&gt;Not sure if refreshing the whole interface is possible OOTB but if you need to get the data back from the process once it is finished you can do the following.&lt;/p&gt;
&lt;p&gt;in the onSuccess do a list of a!save instead of a!refreshContent&lt;/p&gt;
&lt;p&gt;Looking at the documentation you have access to the fv!processInfo, with this you can update any variables related to this for example if you are making a modification to ri!book and in the process you have a process variable pv!book.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can add a save to the onSuccess parameter as follows&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="sass"&gt;onSuccess: {
    a!save(
    ri!book, 
    fv!processInfo.pv.book
    )
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;which then the data will be updated in your interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Read more on a!startProcessLink here -&amp;gt;&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/24.3/Start_Process_Smart_Service.html#a!startprocess()"&gt;docs.appian.com/.../Start_Process_Smart_Service.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>