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 tried using the onSuccess property to trigger a refresh, but unfortunately, I have not been successful with this approach.
onSuccess
I would appreciate any advice or examples on how to implement this, whether it involves using specific Appian components, plugins, configurations, or a combination of approaches.
Thank you in advance for your assistance!
Discussion posts and replies are publicly visible
Question is what is on that interface: do you have only grid with data, form, dropdowns, etc? Without knowing how entire ui looks like it is hard to give one solution for that.
One of the solution is to change some local value on Success (as you tried) and then have other data defined as variable that are refreshed based on that local value. In other words your grid is defined as refresh variable that relay on local!refreshcounter. Whenever your process finish you take same local!refreshcounter and change it value to something different. In this way your grid data will be refreshed.
docs.appian.com/.../fnc_evaluation_a_refreshvariable.html
An answer in bite-size chunks:
First thing, there is no function called a!refreshContent() in appian.
Try the following
1. Create a new rule input called refreshCounter of type int.
2. Use refreshVariable() to wrap the variable values that you want to refresh in the interface and set the "refreshOnVarChange" parameter to "ri!refreshCounter".
3. Create a process variable called refreshCounter and map it with the rule input. Activity chain all the nodes from start till end in the "Create new solicitude" process. At the end of the process change the value of the pv!refreshCounter.
4. In the OnSuccess parameter, save the changed process variable value to rule input "ri!refreshCounter << fv!processInfo.pv.refreshCounter"