When executing an expression or rule in a script task, and the expression uses the load() function, users observe that calling the same rule results in the same output despite different inputs. This behavior can occur if a rule uses the load() function to store the input in a local variable with the same name and store the output in a process variable.
This is expected behavior based on how Appian handles context within a script task.
Upgrade to Appian 19.2 or later and use a!localVariables() instead of load(), as described in the documentation.
This article applies to all versions of Appian.
Last Reviewed: January 2020
© 2020 Appian. All rights reserved.