Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created May 12, 2010 12:37
Show Gist options
  • Save nsdevaraj/398530 to your computer and use it in GitHub Desktop.
Save nsdevaraj/398530 to your computer and use it in GitHub Desktop.
private function resultHandler( rpcevt:ResultEvent, token:Object = null ):void {
var resultObj:Object = rpcevt.result;
//line 1
var outCollection:ICollection =
updateCollection(serviceSignal.currentCollection, serviceSignal.currentSignal,resultObj);
//line 2
if(serviceSignal.currentProcessor) processVO(serviceSignal.currentProcessor,outCollection);
//line 3
resultSignal.dispatch(rpcevt.result, serviceSignal.currentSignal);
//line 4
signalSeq.onSignalDone();
let us analyse the above code based on line numbers:
line 1, modifies the VOCollection Object with the received response.
line 2, if Processor exists, for every VO the processor will be used to do the server mappings
in client side.
line 3, resultSignal dispatched to intimate the Server process is complete.
So, further View updates can take place.
line 4, the SignalSequence is given with OK, to proceed with next queued signals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment