- Timestamp:
- Apr 8, 2011, 12:07:56 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/dbnp/studycapturing/AssayService.groovy
r1727 r1730 191 191 def moduleUrl = assay.module.url 192 192 193 def path = moduleUrl + "/rest/getMeasurement MetaData/query?assayToken=$assay.assayUUID"193 def path = moduleUrl + "/rest/getMeasurements/query?assayToken=$assay.assayUUID" 194 194 195 195 def jsonArray = moduleCommunicationService.callModuleRestMethodJSON(moduleUrl, path) 196 196 197 // convert the JSONArray of JSONObjects to an array of hash maps 198 jsonArray.collect{ jo -> // JSONObject 199 [(jo.keys()[0]): jo.values().toList()[0]] 200 } 197 jsonArray*.toString() 201 198 202 199 } … … 231 228 // 232 229 // [ "measurement 1": [ value1, value2, value3 ], 233 // "measurement 2": [ value4, value5, value6 ] 230 // "measurement 2": [ value4, value5, value6 ] ] 234 231 // 235 232 def map = [:]
Note: See TracChangeset
for help on using the changeset viewer.