You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Groovy with REST API - Reading Paramters from File

Received Response
61
Views
5
Comments

Summary:


Content (required):

I'm trying to execute a rule via groovy and REST API by reading the parameters from a file (CSV). If I populate the array with the paramters manually, the request works - see below:


Paramaters set in an array


arrParams2 then used in the Payload object


However, if I populate arrParams2 from a variable that I read from a file, the requests fails - see below for details:

arrParams2 is populated from a comma seperated string with the split command



If I output the contents of arrParams2 to the console, i get this exactly the same contents as I have when the array is manually populated

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!