Package org.apache.airavata.client.api

Examples of org.apache.airavata.client.api.AiravataAPIInvocationException


    @Override
    public void setWorkflowInstanceTemplateName(String workflowInstanceId, String templateName) throws AiravataAPIInvocationException {
        try{
            getClient().getRegistryClient().setWorkflowInstanceTemplateName(workflowInstanceId, templateName);
        }catch (Exception e) {
            throw new AiravataAPIInvocationException(e);
        }
    }
View Full Code Here


    @Override
    public void saveWorkflowExecutionOutput(String experimentId, String outputNodeName, String output) throws AiravataAPIInvocationException {
        try {
            getClient().getRegistryClient().saveWorkflowExecutionOutput(experimentId, outputNodeName, output);
        } catch (Exception e) {
            throw new AiravataAPIInvocationException(e);
        }
    }
View Full Code Here

  public ExperimentData getExperimentMetaInformation(String experimentId)
      throws AiravataAPIInvocationException {
    try {
      return getClient().getRegistryClient().getExperimentMetaInformation(experimentId);
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

  public List<ExperimentData> getAllExperimentMetaInformation(String user)
      throws AiravataAPIInvocationException {
    try {
      return getClient().getRegistryClient().getAllExperimentMetaInformation(user);
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

    public void updateWorkflowNodeGramData(WorkflowNodeGramData data) throws AiravataAPIInvocationException {
        try {
            client.getRegistryClient().updateWorkflowNodeGramData(data);
        } catch (RegistryException e) {
            new AiravataAPIInvocationException(e);
        } catch (AiravataConfigurationException e) {
            new AiravataAPIInvocationException(e);
        }
    }
View Full Code Here

        } catch (UserWorkflowAlreadyExistsException e) {
            throw new DescriptorRecordAlreadyExistsException("Workflow " +
                    workflow.getName()
                    + " already exists in the system.", e);
        } catch (RegistryException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while adding workflow " +
                    workflow.getName(), e);
        } catch (AiravataConfigurationException e) {
            throw new AiravataAPIInvocationException("Error retrieving registry client for workflow " +
                    workflow.getName(), e);
        }

        if (owner == null) {
            try {
                getClient().getRegistryClient().publishWorkflow(workflow.getName());
            } catch (RegistryException e) {
                throw new AiravataAPIInvocationException("An internal error occurred while adding workflow " +
                        workflow.getName(), e);
            } catch (AiravataConfigurationException e) {
                throw new AiravataAPIInvocationException("Error retrieving registry client for workflow " +
                        workflow.getName(), e);
            }
        }
    }
View Full Code Here

    private void updateWorkflow(Workflow workflow, String workflowAsString, String owner)
            throws AiravataAPIInvocationException {
        try {
            getClient().getRegistryClient().updateWorkflow(workflow.getName(), workflowAsString);
        } catch (RegistryException e) {
            throw new AiravataAPIInvocationException("An internal error occurred while adding workflow " +
                    workflow.getName(), e);
        } catch (AiravataConfigurationException e) {
            throw new AiravataAPIInvocationException("Error retrieving registry client for workflow " +
                    workflow.getName(), e);
        }

        if (owner == null) {
            try {
                getClient().getRegistryClient().publishWorkflow(workflow.getName());
            } catch (RegistryException e) {
                throw new AiravataAPIInvocationException("An internal error occurred while adding workflow " +
                        workflow.getName(), e);
            } catch (AiravataConfigurationException e) {
                throw new AiravataAPIInvocationException("Error retrieving registry client for workflow " +
                        workflow.getName(), e);
            }
        }
    }
View Full Code Here

      if (owner==null){
        getClient().getRegistryClient().publishWorkflow(workflow.getName());
      }
      return true;
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

      for(String workflowStr:workflowMap.values()){
        workflows.add(getWorkflowFromString(workflowStr));
      }
      return workflows;
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

      for (String name : workflows.keySet()) {
        workflowList.add(name);
      }
      return workflowList;
    } catch (Exception e) {
      throw new AiravataAPIInvocationException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.airavata.client.api.AiravataAPIInvocationException

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.