I am trying to pass multiple string as parameter to the function
Function:
void addColumn(java.lang.String... headers)
Description
Add a row of column headers to this grid. This should be called once per dimension on the column, and the length of headers from each dimension should match.
Example call from Groovy that adds Jan, Feb, Mar from FY16 and FY17:
builder.addColumn('2016', '2016', '2016', '2017', '2017', '2017')
builder.addColumn('Jan', 'Feb', 'Mar', Jan', 'Feb', 'Mar')
So If I pass the parameter like in the above example it works fine.. I couldn't figure out the way to pass it dynamically in groovy??