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
marcop519
over 12 years ago
For Michael: the rule is "=if(ri!param1>2000,ri!param1,0)" and the parameter is generated by another rule that generates the subset "=rdrop(ri!param1,(length(ri!param1)-((length(ri!param1)/100)*ri!param2)))" where param1 is a Number(Decimal) array and param2 is an integer that determinates the percentage of values to be considered. Starting process for debugging or testing the rule I see the output datasubset is something like this {decimal1,decimal2,decimal3} . But, reading Santhya's considerations...how can I determine if the values are really separated by comma or semicolums?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
marcop519
over 12 years ago
For Michael: the rule is "=if(ri!param1>2000,ri!param1,0)" and the parameter is generated by another rule that generates the subset "=rdrop(ri!param1,(length(ri!param1)-((length(ri!param1)/100)*ri!param2)))" where param1 is a Number(Decimal) array and param2 is an integer that determinates the percentage of values to be considered. Starting process for debugging or testing the rule I see the output datasubset is something like this {decimal1,decimal2,decimal3} . But, reading Santhya's considerations...how can I determine if the values are really separated by comma or semicolums?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data