Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
8 replies
Answers
2 answers
Subscribers
8 subscribers
Views
9621 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Does anyone know if the a!save operations in a saveInto always happen in order f
marky
over 10 years ago
Does anyone know if the a!save operations in a saveInto always happen in order from top to bottom? I am wondering if there is a possibility that the a!save operations would not go in order, perhaps because of a race condition with the underlying threading....
OriginalPostID-132842
OriginalPostID-132842
Discussion posts and replies are publicly visible
0
rayudua
over 10 years ago
when we do multiple variables data >output > saveinto pv!s , it was always a race condition. the variables are not saved top down. I would think same thing happening here a!save, if we have a some calculations , do it first and then save.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
marky
over 10 years ago
I know for output on nodes its a race condition. But I have built quite a bit of SAIL where the saveInto order matters completely to the logic of the SAIL code and it usually works fine. I recently experienced an issue and looking at my code, the only thing I could figure out is that the saveInto order may be a race condition that almost always follows order but occasionally does not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
hajii
over 10 years ago
a!save()'s within a element saveInto are done in order. That's how it's been for me.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Josh
Certified Lead Developer
over 10 years ago
forum.appian.com/.../e-126565
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
+1
marky
over 10 years ago
Thank you. That is exactly what I needed to know.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
davids0001
over 7 years ago
in reply to
marky
For anyone checking out this thread after switch to Community, I think documentation is here stating that saveInto does in fact save values from top to bottom.
The expression in the saveInto parameter evaluates when the user interacts with the component. Each item in the saveInto array evaluates one at a time. Therefore, if an a!save() parameter uses a variable that was updated higher in the list, a!save() evaluates with the variable's updated value. (Taken from page "SAIL Design" in the documentation on this site)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
Hi Mark,
We are using 16.2 and we haven't faced any issue till now. If the execution order is not maintained we might face undesired behavior that will not be good.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
TJ
over 7 years ago
saveInto for a component always works in Top to Bottom approach. In a script task the outputs doesn't evaluate in Top to Bottom Approach.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel