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
8 subscribers
Views
2056 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
We have functions like apply(fn!functionName, array), reduce(fn!product, accumu
chetany
A Score Level 1
over 10 years ago
We have functions like apply(fn!functionName, array), reduce(fn!product, accumulator, array), which take a function or rule as an argument. This allows us to evaluate in a functional(as in Functional Programming) manner. In a way they are higher order functions. However, we cannot create a rule which takes another rule/function as an input. Will Appian allow such functionality anytime in the future?...
OriginalPostID-128751
OriginalPostID-128751
Discussion posts and replies are publicly visible
Top Replies
chetany
over 10 years ago
+1
A Score Level 1
Thank you for the link. I agree that it is doable by creating a custom function plugin. However, I just wish that a process designer would have the flexibility of doing so just by using the expression…
0
chetany
A Score Level 1
over 10 years ago
I think this will be useful if I want to create my own version of reduce()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Technically speaking you can build your own custom function that executes any expression if you use the ProcessDesignService API and its evaluateexpression() method
forum.appian.com/.../ProcessDesignService.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 10 years ago
Thank you for the link. I agree that it is doable by creating a custom function plugin. However, I just wish that a process designer would have the flexibility of doing so just by using the expression editor.
While creating a expression rule, we can define certain input parameters for that rule. The inputs can be only of certain predefined datatypes.(like Number, boolean, Text, Any etc.) In those predefined datatypes for input params we do not have something like "Function/rule reference".
Suppose the rule I want to create is like - map(rule!mappingFunction, ri!arrint_array ) which maps an array to another array using the passed function.
I do not currently have the means to create such a rule using Expression editor since there is no way to include a function reference as an input parameter.
It would be great to have this functionality for process designers. It certainly is not a must have feature.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel