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
  • I already know how to refactor the code, so thank you for the suggestions. The problem is that I doubt more than 10% of Appian developers actually understand the way with() scope works. So I ask which is more practical: a) All of the Appian developers in the world all become educated on how with works, and spend a lot of effort to refactor the code to improve performance. b) Appian fixes the way with works to improve the performance of all existing code without any effort or training by the developers.
Reply
  • I already know how to refactor the code, so thank you for the suggestions. The problem is that I doubt more than 10% of Appian developers actually understand the way with() scope works. So I ask which is more practical: a) All of the Appian developers in the world all become educated on how with works, and spend a lot of effort to refactor the code to improve performance. b) Appian fixes the way with works to improve the performance of all existing code without any effort or training by the developers.
Children
No Data