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
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"