with() declarations refresh on any user action regardless of connection

Hello:

I have noticed that anything declared in a with will get refreshed on any action the user takes on an interface, even if the with is unrelated to the action (such as a summary section at the top of the screen and a comments text box at the bottom, with no connection between the two).

Is this expected behavior for Appian?

It seems like with declared variables/rules/components should only refresh if one of the input variables changes.

If you see in the attached interface, changing the value in the textbox is refreshing the with variable, even though they are not related.

OriginalPostID-251823


example_interface.txt

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    In regards to point a, developers should read the documentation of the functions they use so they understand the behavior and performance impact. I don't think it is a big ask for developers to understand how their code works. In regards to point b, if you change the functionality of with() you could negatively impact developers who used with() correctly. What happens when I have a with() variable that I want updated every time an action occurs but with no explicit connection to the object being updated? An update to the with() function would break my functionality forcing me to apply fixes to production code.
Reply
  • 0
    Certified Lead Developer
    In regards to point a, developers should read the documentation of the functions they use so they understand the behavior and performance impact. I don't think it is a big ask for developers to understand how their code works. In regards to point b, if you change the functionality of with() you could negatively impact developers who used with() correctly. What happens when I have a with() variable that I want updated every time an action occurs but with no explicit connection to the object being updated? An update to the with() function would break my functionality forcing me to apply fixes to production code.
Children
No Data