jmapper-core icon indicating copy to clipboard operation
jmapper-core copied to clipboard

Using operators in API body

Open M-Hagras opened this issue 7 years ago • 0 comments

I am trying to loop over source[List<myObject>] to get data attribute pushing it to source.

I am using for loop but I get an error in codition operator. how can I escape it? code .body("for(int i=0 ; i<=${source}.size() ; i++) ${destination}.add(${source}.get(0).getXValue());" + "return ${destination};")) Error

unexpected character in markup = (position: START_TAG seen ... to ="getXValue" type ="DYNAMIC">for(int i=0 ; i<=... @220:123)

M-Hagras avatar Feb 27 '18 13:02 M-Hagras