Assert.assertTrue(airavataAPI.getApplicationManager().isApplicationDescriptorExists(
serviceDescription.getType().getName(), hostDescription.getType().getHostName(),
applicationDeploymentDescription.getType().getApplicationName().getStringValue()));
log("Saving workflow ...");
Workflow workflow = new Workflow(getWorkflowComposeContent("src/test/resources/EchoWorkflow.xwf"));
try {
airavataAPI.getWorkflowManager().addWorkflow(workflow);
Assert.fail("Workflow should already exists and should go to update.");
} catch (WorkflowAlreadyExistsException e) {
log("Updating workflow...");
airavataAPI.getWorkflowManager().updateWorkflow(workflow);
}
Assert.assertTrue(airavataAPI.getWorkflowManager().isWorkflowExists(workflow.getName()));
log("Workflow setting up completed ...");
try {
runWorkFlowWithoutMonitor(workflow, Arrays.asList("echo_output=Airavata_Test"));