code: function(input, chainLink) {
          var output = this.getOutputIndex(
              chainLink.process.description.processOutputs, chainLink.output
          );
          input.reference.mimeType = this.findMimeType(
              input.complexData.supported.formats,
              chainLink.process.description.processOutputs[output].complexOutput.supported.formats
          );
          var formats = {};
          formats[input.reference.mimeType] = true;
          chainLink.process.setResponseForm({
              outputIndex: output,
              supportedFormats: formats
          });
          input.reference.body = chainLink.process.description;
          while (this.executeCallbacks.length > 0) {
              this.executeCallbacks[0]();
          }
      }
docs: Method: chainProcess
  Sets a fully configured chained process as input for this process.
  
  Parameters:
  input - {Object} The dataInput that the chained process provides.
  chainLink - {<OpenLayers.WPSProcess.ChainLink>} The process to chain.