Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Custom Component variable conversion

Avatar

Level 4

Hey Everyone,

I wrote a custom Java component that successfully runs in Eclipse, and when I deploy/install it and run it, it gives me no errors.  But I have a question.

My method that I am calling from the component accepts a List<Integer> as an argument.  So in Workbench I am making some test data in the execute script process:

So my question is:  When I view the variable cnflctRuleList it shows:

So if I passed this to my java component, would it convert that to however Java interprets Lists? (129) or whatever?  Or will it pass the xml into the list.

Thanks in advance,

Alex

1 Accepted Solution

Avatar

Correct answer by
Level 8

You don't have to worry about the XML conversion - the view of the list is just an XPATH representation of it for viewing purposes.  Under the covers its stored as a java ArrayList <int>.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

You don't have to worry about the XML conversion - the view of the list is just an XPATH representation of it for viewing purposes.  Under the covers its stored as a java ArrayList <int>.