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
9 replies
Subscribers
6 subscribers
Views
5282 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am creating a simple plug-in to generate Fibonacci series. In my java code I h
zianf
over 8 years ago
I am creating a simple plug-in to generate Fibonacci series. In my java code I have used ArrayList<Integer> a = new ArrayList<Integer>() to store all the numbers in an Array. At the end of the code, I return the ArrayList object i.e return a. But when I call my function in Expression Rule after exporting the plugin to the plugin folder, the function doesn't seem to exist. Is this because I am returning an Array of values? What should I do to generate an array of values?
I had made another simple plug-in to fetch the factorial of a number. This worked successfully.
OriginalPostID-223874
OriginalPostID-223874
Discussion posts and replies are publicly visible
Parents
0
chetany
A Score Level 1
over 8 years ago
As mentioned by Eduardo, the plugin deployment must have failed. In my experience, I have always encountered an error whenever I tried to return ArrayList. (The exact error is: Invalid Error: Unsupported Type: java.util.List...) You have to convert it back to an array. You could use the method .toArray() for converting the ArrayList to simple array, then return it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chetany
A Score Level 1
over 8 years ago
As mentioned by Eduardo, the plugin deployment must have failed. In my experience, I have always encountered an error whenever I tried to return ArrayList. (The exact error is: Invalid Error: Unsupported Type: java.util.List...) You have to convert it back to an array. You could use the method .toArray() for converting the ArrayList to simple array, then return it.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data