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/07/12 23:20:15 UTC
svn commit: r1360954 -
/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java
Author: samindaw
Date: Thu Jul 12 21:20:15 2012
New Revision: 1360954
URL: http://svn.apache.org/viewvc?rev=1360954&view=rev
Log:
show status in experiment
Modified:
incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java
Modified: incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java
URL: http://svn.apache.org/viewvc/incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java?rev=1360954&r1=1360953&r2=1360954&view=diff
==============================================================================
--- incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java (original)
+++ incubator/airavata/trunk/modules/xbaya-gui/src/main/java/org/apache/airavata/xbaya/registrybrowser/nodes/XBayaWorkflowExperimentNode.java Thu Jul 12 21:20:15 2012
@@ -29,6 +29,7 @@ import javax.swing.JTree;
import javax.swing.tree.TreeNode;
import org.apache.airavata.common.registry.api.exception.RegistryException;
+import org.apache.airavata.registry.api.workflow.WorkflowInstanceStatus;
import org.apache.airavata.xbaya.model.registrybrowser.XBayaWorkflowExperiment;
import org.apache.airavata.xbaya.ui.actions.AbstractBrowserActionItem;
@@ -58,7 +59,16 @@ public class XBayaWorkflowExperimentNode
workflowExecutionName="["+getExperiment().getExperimentId()+"]";
}
}
- return workflowExecutionName;
+ String caption=workflowExecutionName;
+ try {
+ WorkflowInstanceStatus workflowExecutionStatus = getRegistry().getWorkflowExecutionStatus(getExperiment().getExperimentId());
+ if (workflowExecutionStatus!=null){
+ caption+=" - <i>"+workflowExecutionStatus.getExecutionStatus().toString() +" as of "+workflowExecutionStatus.getStatusUpdateTime().toString()+"</i>";
+ }
+ } catch (RegistryException e) {
+ e.printStackTrace();
+ }
+ return wrapAsHtml(caption);
}
@Override