set program name to service type (see related issues to JAL-493 re setting provenance...
authorjprocter <Jim Procter>
Mon, 21 Jun 2010 10:16:50 +0000 (10:16 +0000)
committerjprocter <Jim Procter>
Mon, 21 Jun 2010 10:16:50 +0000 (10:16 +0000)
src/jalview/ws/jws2/MsaWSThread.java

index 3ecce57..416c5d7 100644 (file)
@@ -347,6 +347,12 @@ class MsaWSThread extends AWS2Thread implements WSClientI
     {
       this.lastChunk = lastChunk;
     }
+
+    String alignmentProgram=null;
+    public String getAlignmentProgram()
+    {
+      return alignmentProgram;
+    }
     
   }
 
@@ -419,6 +425,7 @@ class MsaWSThread extends AWS2Thread implements WSClientI
         }
         ((MsaWSJob) jobs[j]).preset = preset;
         ((MsaWSJob) jobs[j]).arguments = paramset;
+        ((MsaWSJob) jobs[j]).alignmentProgram = wsname;
         if (njobs > 0)
         {
           wsinfo
@@ -690,7 +697,7 @@ class MsaWSThread extends AWS2Thread implements WSClientI
       {
         msjob = (MsaWSJob)jobs[j];
         Object[] res = msjob.getAlignment();
-        lastProgram = msjob.alignment.getMetadata().getProgram().name();
+        lastProgram = msjob.getAlignmentProgram();
         alorders.add(res[1]);
         results[j] = (SequenceI[]) res[0];
         orders[j] = (AlignmentOrder) res[1];