Package org.apache.airavata.registry.api.workflow

Examples of org.apache.airavata.registry.api.workflow.WorkflowInstanceStatus


        Map<String,WorkflowInstanceStatus> workflowStatusMap = new HashMap<String, WorkflowInstanceStatus>();
        try {
            session = getSession();
            List<String> matchingExperimentIds = getMatchingExperimentIds(regex, session);
            for(String experimentId:matchingExperimentIds){
                WorkflowInstanceStatus workflowStatus = getWorkflowExecutionStatus(experimentId);
                workflowStatusMap.put(experimentId,workflowStatus);
            }
    } catch (RepositoryException e) {
            e.printStackTrace();
            throw new RegistryException(e);
View Full Code Here


  public boolean saveWorkflowExecutionStatus(String experimentId,
      ExecutionStatus status) throws RegistryException {
      if (getProvenanceRegistry()!=null){
        return getProvenanceRegistry().saveWorkflowExecutionStatus(experimentId, status);
      }
    return saveWorkflowExecutionStatus(experimentId,new WorkflowInstanceStatus(new WorkflowInstance(experimentId, experimentId), status));
  }
View Full Code Here

        workflowExecutionName="["+getExperiment().getExperimentId()+"]";
      }
    }
      String caption=workflowExecutionName;
      try {
      WorkflowInstanceStatus workflowExecutionStatus = getRegistry().getWorkflowExecutionStatus(getExperiment().getExperimentId());
      if (workflowExecutionStatus!=null && workflowExecutionStatus.getExecutionStatus()!=null){
        caption += " - <i>" + workflowExecutionStatus.getExecutionStatus().toString()+"</i>";
        if (workflowExecutionStatus.getStatusUpdateTime()!=null) {
            caption += "<i> as of " + workflowExecutionStatus.getStatusUpdateTime().toString() + "</i>";
        }
      }
    } catch (RegistryException e) {
      e.printStackTrace();
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.workflow.WorkflowInstanceStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.