From 244588b87ac3818d6ff13050aa947feb823f5cd4 Mon Sep 17 00:00:00 2001 From: jprocter Date: Mon, 21 Jun 2010 10:16:50 +0000 Subject: [PATCH] set program name to service type (see related issues to JAL-493 re setting provenance correctly) --- src/jalview/ws/jws2/MsaWSThread.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/ws/jws2/MsaWSThread.java b/src/jalview/ws/jws2/MsaWSThread.java index 3ecce57..416c5d7 100644 --- a/src/jalview/ws/jws2/MsaWSThread.java +++ b/src/jalview/ws/jws2/MsaWSThread.java @@ -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]; -- 1.7.10.2