You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sa...@apache.org on 2012/01/20 20:25:21 UTC
svn commit: r1234085 [2/2] - in /incubator/airavata/trunk/modules:
commons/common-registry-api/src/main/java/org/apache/airavata/common/registry/api/exception/
commons/registry-api/src/main/java/org/apache/airavata/registry/api/
commons/registry-api/sr...
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowTemplateNode.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowTemplateNode.java?rev=1234085&r1=1234084&r2=1234085&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowTemplateNode.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowTemplateNode.java Fri Jan 20 19:25:19 2012
@@ -30,6 +30,7 @@ import javax.swing.JTree;
import javax.swing.tree.TreeNode;
import javax.xml.namespace.QName;
+import org.apache.airavata.common.registry.api.exception.RegistryException;
import org.apache.airavata.registry.api.exception.ServiceDescriptionRetrieveException;
import org.apache.airavata.xbaya.graph.gui.GraphCanvas;
import org.apache.airavata.xbaya.registry.RegistryAccesser;
@@ -92,9 +93,13 @@ public class XBayaWorkflowTemplateNode e
private void deleteHostDescription(JTree tree) throws PathNotFoundException, ServiceDescriptionRetrieveException {
if (askQuestion("XBaya Workflow", "Are you sure that you want to remove the workflow \""
+ getXbayaWorkflow().getWorkflowName() + "\"?")) {
- getRegistry().deleteWorkflow(new QName(getXbayaWorkflow().getWorkflowName()), getRegistry().getUsername());
- ((AbstractAiravataTreeNode) getParent()).refresh();
- reloadTreeNode(tree, getParent());
+ try {
+ getRegistry().deleteWorkflow(new QName(getXbayaWorkflow().getWorkflowName()), getRegistry().getUsername());
+ ((AbstractAiravataTreeNode) getParent()).refresh();
+ reloadTreeNode(tree, getParent());
+ } catch (RegistryException e) {
+ e.printStackTrace();
+ }
}
}
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/XBayaClientTest.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/XBayaClientTest.java?rev=1234085&r1=1234084&r2=1234085&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/XBayaClientTest.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/test/java/org/apache/airavata/xbaya/interpreter/XBayaClientTest.java Fri Jan 20 19:25:19 2012
@@ -36,21 +36,21 @@ import java.net.URISyntaxException;
public class XBayaClientTest {
@Test
public void testInvokeWorkflowString() {
-// try {
-// ListenerManager manager = axis2ServiceStarter();
-// XBayaClient xBayaClient = new XBayaClient("xbaya.properties");
-// xBayaClient.loadWorkflowFromaFile("Mysimplemath.xwf");
-// NameValue[] nameValues = xBayaClient.setInputs("xbaya.properties");
-// String s = xBayaClient.runWorkflow("test",nameValues);
-// org.junit.Assert.assertEquals("test",s);
-// manager.stop();
-// } catch (URISyntaxException e) {
+ try {
+ ListenerManager manager = axis2ServiceStarter();
+ XBayaClient xBayaClient = new XBayaClient("xbaya.properties");
+ xBayaClient.loadWorkflowFromaFile("Mysimplemath.xwf");
+ NameValue[] nameValues = xBayaClient.setInputs("xbaya.properties");
+ String s = xBayaClient.runWorkflow("test",nameValues,"testuser");
+ org.junit.Assert.assertEquals("test",s);
+ manager.stop();
+ } catch (URISyntaxException e) {
// TODO Auto-generated catch block
-// e.printStackTrace();
-// } catch (IOException e) {
+ e.printStackTrace();
+ } catch (IOException e) {
// TODO Auto-generated catch block
-// e.printStackTrace();
-// }
+ e.printStackTrace();
+ }
}
private ListenerManager axis2ServiceStarter() throws AxisFault {
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/test/resources/xbaya.properties
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/test/resources/xbaya.properties?rev=1234085&r1=1234084&r2=1234085&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/test/resources/xbaya.properties (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/test/resources/xbaya.properties Fri Jan 20 19:25:19 2012
@@ -6,4 +6,7 @@ messagebroker.url=http://localhost:8080/
myproxy.username=ogce
myproxy.password=testpassword
xbaya.service.url=http://gw39.quarry.iu.teragrid.org:19080/axis2/services/XBayaService?wsdl
+jcr.url=http://localhost:8081/rmi
+jcr.username=admin
+jcr.password=admin
echo=Hello World
\ No newline at end of file