Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
7 subscribers
Views
3054 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
What is the difference between a!apply and a!applycomponents? According to
JEAN PIERRE
over 10 years ago
What is the difference between a!apply and a!applycomponents?
According to the documentation:
"...Calls a rule or function for each item in a list and supports the preservation of the local state on SAIL interfaces..."
What does it mean to Support the preservation of the local state?...
OriginalPostID-124550
OriginalPostID-124550
Discussion posts and replies are publicly visible
0
JEAN PIERRE
over 10 years ago
Heloooooo!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
janakik
over 10 years ago
Did you get the difference between these two funcitons?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tom Ryan
Appian Employee
over 10 years ago
To clarify, apply() cannot be used with rules or functions that store local data, including rules using load() and certain SAIL components. That is, the state of a SAIL component which stores local data can be preserved with a!applyComponents(), however in these cases, apply() will return an error. In summary, use a!applyComponents() any time you're iterating over a list of components or iterating over a rule that has a load() within it, otherwise use a!apply().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel