Changeset 2120 for trunk/grails-app/services/dbnp
- Timestamp:
- Nov 25, 2011, 3:36:45 PM (11 years ago)
- Location:
- trunk/grails-app/services/dbnp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/dbnp/modules/ModuleCommunicationService.groovy
r2049 r2120 183 183 // Store the response in cache 184 184 storeInCache( restUrl, restResponse, args ); 185 185 186 186 return restResponse 187 187 … … 205 205 def user = authenticationService.getLoggedInUser(); 206 206 def userId = user ? user.id : -1; 207 207 208 208 url = cacheUrl( url, args ) 209 209 -
trunk/grails-app/services/dbnp/studycapturing/AssayService.groovy
r2095 r2120 171 171 172 172 // Find samples and sort by name 173 if ( !samples)174 samples = assay.samples.toList().sort { it.name }173 if ( !samples ) samples = assay.samples.toList() 174 samples = samples.sort { it.name } 175 175 176 176 def eventFieldMap = [:] … … 194 194 } catch (e) { 195 195 moduleMeasurementData = ['error' : ['Module error, module not available or unknown assay'] * samples.size() ] 196 e.printStackTrace() 196 197 moduleError = e.message 197 198 } … … 311 312 def query = "assayToken=$assay.assayUUID$tokenString" 312 313 314 if (samples) { 315 query += '&' + samples*.sampleUUID.collect { "sampleToken=$it" }.join('&') 316 } 317 313 318 def sampleTokens = [], measurementTokens = [], moduleData = [] 314 319 … … 316 321 (sampleTokens, measurementTokens, moduleData) = moduleCommunicationService.callModuleMethod(moduleUrl, path, query, "POST", remoteUser) 317 322 } catch (e) { 323 e.printStackTrace() 318 324 throw new Exception("An error occured while trying to get the measurement data from the $assay.module.name. \ 319 325 This means the module containing the measurement data is not available right now. Please try again \
Note: See TracChangeset
for help on using the changeset viewer.