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

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


  @Override
  public void addWorkflowInstanceNodeOutputData(String experimentId,
      String workflowInstanceId, String nodeId, String data)
      throws AiravataAPIInvocationException {
    addWorkflowInstanceNodeOutputData(new WorkflowInstanceNodePortData(new WorkflowInstanceNode(new WorkflowInstance(experimentId, workflowInstanceId), nodeId), data));
   
  }
View Full Code Here


  @Override
  public List<WorkflowInstanceNodePortData> getWorkflowInstanceNodeInputData(
      String experimentId, String workflowInstanceId, String nodeId)
      throws AiravataAPIInvocationException {
    return getWorkflowInstanceNodeInputData(new WorkflowInstanceNode(new WorkflowInstance(experimentId, workflowInstanceId), nodeId));
  }
View Full Code Here

  @Override
  public List<WorkflowInstanceNodePortData> getWorkflowInstanceNodeOutputData(
      String experimentId, String workflowInstanceId, String nodeId)
      throws AiravataAPIInvocationException {
    return getWorkflowInstanceNodeOutputData(new WorkflowInstanceNode(new WorkflowInstance(experimentId, workflowInstanceId), nodeId));

  }
View Full Code Here

  }
 
  @Override
  public void setWorkflowInstanceStatus(String experimentId, String workflowInstanceId,
      ExecutionStatus status) throws AiravataAPIInvocationException {
    setWorkflowInstanceStatus(new WorkflowInstanceStatus(new WorkflowInstance(experimentId, workflowInstanceId),status));
  }
View Full Code Here

  }

  @Override
  public WorkflowInstanceUser getWorkflowInstanceUser(String experimentId,
      String workflowInstanceId) throws AiravataAPIInvocationException {
    return getWorkflowInstanceUser(new WorkflowInstance(experimentId, workflowInstanceId));
  }
View Full Code Here

  @Override
  public WorkflowInstanceMetadata getWorkflowInstanceMetadata(
      String experimentId, String workflowInstanceId)
      throws AiravataAPIInvocationException {
    return getWorkflowInstanceMetadata(new WorkflowInstance(experimentId, workflowInstanceId));
  }
View Full Code Here

  public List<WorkflowInstance> getWorkflowInstances(String user)
      throws AiravataAPIInvocationException {
    List<WorkflowInstance> list=new ArrayList<WorkflowInstance>();
    List<String> experiments = getExperiments(user);
    for (String id : experiments) {
      list.add(new WorkflowInstance(id, id));
    }
    return list;
  }
View Full Code Here

    }
  }

  private WorkflowInstanceData createWorkflowInstanceData(
      WorkflowExecution execution) {
    WorkflowInstance workflowInstance = new WorkflowInstance(execution.getExperimentId(),execution.getTopic());
    WorkflowInstanceData workflowInstanceData = new WorkflowInstanceData(workflowInstance, new WorkflowInstanceName(workflowInstance, execution.getWorkflowInstanceName()),new WorkflowInstanceUser(workflowInstance,execution.getUser()), new WorkflowInstanceStatus(workflowInstance,execution.getExecutionStatus().getExecutionStatus(),execution.getExecutionStatus().getStatusUpdateTime()), new WorkflowInstanceMetadata(workflowInstance,execution.getMetadata()), null);
    Map<WorkflowInstanceNode, List<WorkflowInstanceNodePortData>> groupNodePortInputData = groupNodePortData(execution.getServiceInput());
    Map<WorkflowInstanceNode, List<WorkflowInstanceNodePortData>> groupNodePortOutputData = groupNodePortData(execution.getServiceOutput());
    for (WorkflowInstanceNode instanceNode : groupNodePortInputData.keySet()) {
      workflowInstanceData.addNodeData(new WorkflowInstanceNodeData(instanceNode, groupNodePortInputData.get(instanceNode), null));
View Full Code Here

  }

  @Override
  public WorkflowInstanceName getWorkflowInstanceName(String experimentId,
      String workflowInstanceId) throws AiravataAPIInvocationException {
    return getWorkflowInstanceName(new WorkflowInstance(experimentId, workflowInstanceId));
  }
View Full Code Here

          Calendar cal = Calendar.getInstance();
          cal.setTimeInMillis(dateMiliseconds);
          date = cal.getTime();
        }
      }
      property=new WorkflowInstanceStatus(new WorkflowInstance(experimentId,experimentId),status, date);
            session.save();
        } catch (Exception e) {
            throw new RegistryException("Error while retrieving workflow execution status!!!", e);
        } finally {
            closeSession(session);
View Full Code Here

TOP

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

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.