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
4 replies
Subscribers
9 subscribers
Views
4225 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi! I need to get a subset of elements from an array. I'm using rdrop f
marcop519
over 12 years ago
Hi!
I need to get a subset of elements from an array. I'm using rdrop function that return the subset. The elements returned are separated by comma and not by semicolon. So, when I pass this subset to a doforeach function the process generates this error: There is a problem with task “Script Task” in the process. The expression function 'doforeach("rule",{2484.0,2440.93,2352.93})' (user=SuperUser, exprId=536870915) could not be evaluated: java.lang.ArrayStoreException (Data Outputs)
Thanks...
OriginalPostID-37423
OriginalPostID-37423
Discussion posts and replies are publicly visible
Parents
0
Sathya Srinivasan
Appian Employee
over 12 years ago
Marco, I am not sure if there is any need to find out what the Tokenizer is. As long as the rules accept a multi value PV! and if you are passing a multi value pv! as input, it should work. What I was trying to say was to identify if the value you are passing is an array or string. For e.g. If I store {"a;b;c;"} into an array, then only the first element of the array is populated as the entire string (even though it looks like its an array of 3 elements. The easy way I'd test this is to pass your pv! array to JOINARRAY function and join by a delimiter to find out how the data tokenizers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sathya Srinivasan
Appian Employee
over 12 years ago
Marco, I am not sure if there is any need to find out what the Tokenizer is. As long as the rules accept a multi value PV! and if you are passing a multi value pv! as input, it should work. What I was trying to say was to identify if the value you are passing is an array or string. For e.g. If I store {"a;b;c;"} into an array, then only the first element of the array is populated as the entire string (even though it looks like its an array of 3 elements. The easy way I'd test this is to pass your pv! array to JOINARRAY function and join by a delimiter to find out how the data tokenizers.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data