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. Specifically, I am looking for guidance on:
Thank you in advance for your assistance!
Discussion posts and replies are publicly visible
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.
in the onSuccess do a list of a!save instead of a!refreshContent
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.
You can add a save to the onSuccess parameter as follows
onSuccess: { a!save( ri!book, fv!processInfo.pv.book ) }
which then the data will be updated in your interface.
Read more on a!startProcessLink here -> docs.appian.com/.../Start_Process_Smart_Service.html