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
Replies
5 replies
Answers
1 answer
Subscribers
8 subscribers
Views
3461 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there any way to dynamically update an expression rule? I have a process that
dylanf
over 11 years ago
Is there any way to dynamically update an expression rule? I have a process that runs daily, queries our database and updates constants accordingly (one constant for a key, another for a value). This works fine. However, to date, when these constants are updated, I have to manually update an expression rule that is used in other places within my application that displays the value based on the key (lots of nested if() statements). So, is there a way to update this expression rule dynamically when the constants are updated?...
OriginalPostID-60667
OriginalPostID-60667
Discussion posts and replies are publicly visible
Parents
0
elizabeth.epstein
over 11 years ago
Hi Dylan. There is no way to update an expression rule through process. You might be able to write a custom smart service to do this.
However I am interested in your key/value use case. One easy way to do key/values is with parallel arrays: one constant (usually string array or int array) of keys, one constant array of values. Then you can use displayvalue() to look up any key, and not have to write if statements for each case. Is this an option for you?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
elizabeth.epstein
over 11 years ago
Hi Dylan. There is no way to update an expression rule through process. You might be able to write a custom smart service to do this.
However I am interested in your key/value use case. One easy way to do key/values is with parallel arrays: one constant (usually string array or int array) of keys, one constant array of values. Then you can use displayvalue() to look up any key, and not have to write if statements for each case. Is this an option for you?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data