<?xml version="1.0" encoding="UTF-8"?>
<s:scufl xmlns:s="http://org.embl.ebi.escience/xscufl/0.1alpha" version="0.2" log="0">
  <s:workflowdescription lsid="urn:lsid:www.mygrid.org.uk:operation:TPZT6DLP5V39" author="Tom Oinn" title="Fetch Dragon images from BioMoby">Use the local java plugins and some filtering operations to fetch the comic strip image from http://www.dilbert.com</s:workflowdescription>
  <s:processor name="hsa0053" boring="true">
    <s:stringconstant>hsa00053</s:stringconstant>
  </s:processor>
  <s:processor name="namespace" boring="true">
    <s:stringconstant>KEGG_PATHWAY</s:stringconstant>
  </s:processor>
  <s:processor name="Decode_base64_to_byte">
    <s:local>org.embl.ebi.escience.scuflworkers.java.DecodeBase64</s:local>
  </s:processor>
  <s:processor name="Object">
    <s:description>an object</s:description>
    <s:biomobyobject>
      <s:mobyEndpoint>http://moby.ucalgary.ca/moby/MOBY-Central.pl</s:mobyEndpoint>
      <s:serviceName>Object</s:serviceName>
      <s:authorityName />
    </s:biomobyobject>
  </s:processor>
  <s:processor name="getKeggPathwayAsGif">
    <s:description>This service, given a KEGG pathway, returns a Gif image of the pathway if it exists.
For example, the &lt;Object, KEGG_PATHWAY, 'hsa00053')
returns a diagram of the pathway 'ASCORBATE AND ALDRATE METABOLISM'.</s:description>
    <s:biomobywsdl>
      <s:mobyEndpoint>http://moby.ucalgary.ca/moby/MOBY-Central.pl</s:mobyEndpoint>
      <s:serviceName>getKeggPathwayAsGif</s:serviceName>
      <s:authorityName>bioinfo.icapture.ubc.ca</s:authorityName>
    </s:biomobywsdl>
  </s:processor>
  <s:processor name="Parse_Moby_Data_b64_encoded_gif">
    <s:description>Processor to parse the datatype b64_encoded_gif</s:description>
    <s:biomobyparser>
      <s:endpoint>http://moby.ucalgary.ca/moby/MOBY-Central.pl</s:endpoint>
      <s:datatype>b64_encoded_gif</s:datatype>
      <s:articleName>image</s:articleName>
      <s:description>Processor to parse the datatype b64_encoded_gif</s:description>
    </s:biomobyparser>
  </s:processor>
  <s:link source="Object:mobyData" sink="getKeggPathwayAsGif:Object(pathway)" />
  <s:link source="Parse_Moby_Data_b64_encoded_gif:image_'content'" sink="Decode_base64_to_byte:base64" />
  <s:link source="getKeggPathwayAsGif:b64_encoded_gif(image)" sink="Parse_Moby_Data_b64_encoded_gif:mobyData('b64_encoded_gif')" />
  <s:link source="hsa0053:value" sink="Object:id" />
  <s:link source="namespace:value" sink="Object:namespace" />
  <s:link source="Decode_base64_to_byte:bytes" sink="images" />
  <s:sink name="images">
    <s:metadata>
      <s:mimeTypes>
        <s:mimeType>image/*</s:mimeType>
      </s:mimeTypes>
    </s:metadata>
  </s:sink>
</s:scufl>


