code: function(input, data) {
          // clear any previous data
          delete input.data;
          delete input.reference;
          if (data instanceof OpenLayers.WPSProcess.ChainLink) {
              ++this.chained;
              input.reference = {
                  method: 'POST',
                  href: data.process.server === this.server ?
                      this.localWPS : this.client.servers[data.process.server].url
              };
              data.process.describe({
                  callback: function() {
                      --this.chained;
                      this.chainProcess(input, data);
                  },
                  scope: this
              });
          } else {
              input.data = {};
              var complexData = input.complexData;
              if (complexData) {
                  var format = this.findMimeType(complexData.supported.formats);
                  input.data.complexData = {
                      mimeType: format,
                      value: this.formats[format].write(this.toFeatures(data))
                  };
              } else {
                  input.data.literalData = {
                      value: data
                  };
              }
          }
      }
docs: Method: setInputData
  Sets the data for a single input
  
  Parameters:
  input - {Object}  An entry from the dataInputs array of the process
  description.
  data - {Mixed} For spatial data inputs, this is usually an
  <OpenLayers.Geometry>, an <OpenLayers.Feature.Vector> or an array of
  geometries or features.