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
7 subscribers
Views
2083 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
In order to make a general purpose sub-process to do some lookups in an external
tmalaher
over 10 years ago
In order to make a general purpose sub-process to do some lookups in an external system, I want to return a key-value map to the calling process. In Appian this type of data structure seems to be known as a "dictionary".
The problem is that I don't see how the keys can be generated dynamically...
I can do this:
{key1: ri!value1, key2: ri!value2}
But then the keys are hardcoded.
If I do:
{ri!key1: ri!value1, ri!key2: ri!value2}
the result is (in the rule tester): [key1:xxx,key2:yyy]
i.e. the "ri!" is ignored and the key becomes the NAME of the rule input variable, rather than the VALUE of the rule input.
I can arrange to have an array of keys and an array of corresponding values, and there's a "merge()" function that would group them, but the result is just an array of arrays, grouped properly, but that's not a dictionary.
Is there something that would turn the result of a merge() into a dictionary, or some other way to dynamicall...
OriginalPostID-114385
OriginalPostID-114385
Discussion posts and replies are publicly visible
Parents
0
Stefan Helzle
A Score Level 3
over 9 years ago
That is a great idea to keep in mind :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Stefan Helzle
A Score Level 3
over 9 years ago
That is a great idea to keep in mind :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data