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
6 replies
Subscribers
8 subscribers
Views
2329 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Hello! Does anyone know how to PROGRAMMATICALLY (that is with the us
samartzisg
over 9 years ago
Hello!
Does anyone know how to PROGRAMMATICALLY (that is with the use of a calculated expression) define a Constant to be updated in the UpdateConstant smart node (under rule management)
I need to update a big number of constants from values taken from a Query Entity and currently I need to create one node for each constant that I need to update manually, that is create some tenths of nodes and lines in the update scheme manually. This is clearly not a good practice but since I cannot find a way to use the update node I have no other choice.
Thank you in advance for your time and consideration!
OriginalPostID-198353
OriginalPostID-198353
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@samartzisg Have you had a look at fn!getconstantobjectbyname() in 'Constant Utilities' Shared Component at https://forum.appian.com/suite/tempo/records/type/components/item/i8BCLGOdlMUpdGVqT-RV7oRg74uEGJO5iYb6HoMZVOt-49gUjVvbuGewZ0EJrfXvQ/view/summary? If not I would like to suggest to do so.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
samartzisg
over 9 years ago
Hello again!
That indeed seems what I am looking for! I have one last question for you. Looking at the code I show the UUID_RULES_ROOT_FOLDER is used to retrieve the constants, (a) does that means this function is working only for one folder (b) how do I set/change this value ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
samartzisg
over 9 years ago
(c) Or this is the root folder for all rules, so it will find my constants no matter where I am placing them ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishirajk
A Score Level 1
over 9 years ago
It points to "SYSTEM_RULES_ROOT". So, you can find your constants no matter where they are as long as they are in the environment.
forum.appian.com/.../
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@samartzisg To the best of my knowledge, here goes answers to your questions:
a. Yes it works for only one folder, but this folder is the global Rules folder which consists of all the rules beneath it in a given Appian instance.
b. You may modify the plugin so that it accepts the folder(or its uuid) and then search in the same folder. But please rethink before doing so, as the search is now performed globally as per my knowledge.
c. Yes the search is made in global Rules folder(As per Appian designer, it's the Rules tab)and it really doesn't matter where you place the constant. To verify it, search UUID_ROOT_RULES_FOLDER in the API and you may find it in Content Constants(as per my idea) and this should clarify your doubts if any. (I am unable to point out a link currently as I am on mobile now.)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
samartzisg
over 9 years ago
Perfectly Dears, thank you very much!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel