How to Refresh an Interface After a Process Model ?

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.



I would appreciate any advice or examples on how to implement this. Specifically, I am looking for guidance on:

  • Using Appian components, plugins, or configurations
  • Any combinations of approaches that could achieve the desired outcome

Thank you in advance for your assistance!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    The trick with Appian is to not try to refresh "the interface", 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.

    In such tricky situations, where I need very clear control on when something refreshes, I use a local variable "refreshCounter". For the locals I want refreshed, I use a!refreshVariable like this

    a!localVariables(
      local!refreshCounter: 0,
      local!yourLocale: a!refreshVariable(
        value: <YOUR_VALUE>
        refreshOnVarChange: local!refreshCounter
      )
    )

    I can then use a!save() to increase that counter from anywhere within the interface.

    BTW, how did you come up with "a!refreshContent"?

Reply
  • 0
    Certified Lead Developer

    The trick with Appian is to not try to refresh "the interface", 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.

    In such tricky situations, where I need very clear control on when something refreshes, I use a local variable "refreshCounter". For the locals I want refreshed, I use a!refreshVariable like this

    a!localVariables(
      local!refreshCounter: 0,
      local!yourLocale: a!refreshVariable(
        value: <YOUR_VALUE>
        refreshOnVarChange: local!refreshCounter
      )
    )

    I can then use a!save() to increase that counter from anywhere within the interface.

    BTW, how did you come up with "a!refreshContent"?

Children
No Data