You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2012/04/10 22:54:13 UTC
svn commit: r1311984 -
/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java
Author: lahiru
Date: Tue Apr 10 20:54:13 2012
New Revision: 1311984
URL: http://svn.apache.org/viewvc?rev=1311984&view=rev
Log:
Fixing more issues with Embedded version of xbaya/gfac.
Modified:
incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java?rev=1311984&r1=1311983&r2=1311984&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/invoker/EmbeddedGFacInvoker.java Tue Apr 10 20:54:13 2012
@@ -103,6 +103,8 @@ public class EmbeddedGFacInvoker impleme
private WsdlDefinitions wsdlDefinitionObject;
+ private Object outPut;
+
Map<Parameter,ActualParameter> actualParameters = new HashMap<Parameter,ActualParameter>();
/**
@@ -292,7 +294,8 @@ public class EmbeddedGFacInvoker impleme
}
// Send notification
logger.info("outputMessage: " + outputElement.toString());
- EmbeddedGFacInvoker.this.notifier.serviceFinished(new WSIFMessageElement(XMLUtil.stringToXmlElement3(outputElement.toStringWithConsume())));
+ outPut = new WSIFMessageElement(XMLUtil.stringToXmlElement3(outputElement.toStringWithConsume()));
+ EmbeddedGFacInvoker.this.notifier.serviceFinished(new WSIFMessageElement((XmlElement)outPut));
} else {
// An implementation of WSIFMessage,
// WSIFMessageElement, implements toString(), which
@@ -416,11 +419,7 @@ public class EmbeddedGFacInvoker impleme
public Object getOutput(String name) throws XBayaException {
try {
waitToFinish();
- Object output = this.invoker.getOutput(name);
- if (output instanceof XmlElement) {
- logger.info("output: " + XMLUtil.xmlElementToString((XmlElement) output));
- }
- return output;
+ return outPut;
} catch (XBayaException e) {
logger.error(e.getMessage(), e);
// An appropriate message has been set in the exception.