Package org.apache.airavata.xbaya

Examples of org.apache.airavata.xbaya.XBayaException


                    .getBrokerURL(), this.topic, true,
                    this.configuration.getMessageBoxURL()),
                wsNode.getID(), null);
          }
        } catch (URISyntaxException e) {
          throw new XBayaException(e);
        }

        leadCtxHeader.setServiceId(node.getID());
        try {
          leadCtxHeader.setWorkflowId(new URI(this.getWorkflow()
View Full Code Here


                    .getBrokerURL(), this.topic, true,
                    this.configuration.getMessageBoxURL()),
                foreachWSNode.getID(), null);
          }
        } catch (URISyntaxException e) {
          throw new XBayaException(e);
        }
        invoker = new WorkflowInvokerWrapperForGFacInvoker(
            portTypeQName, gfacURLString, this.configuration
                .getMessageBoxURL().toString(), leadCtxHeader,
            this.notifier
View Full Code Here

          inputValues.add(inputValue);
        }

      }
    } catch (ArrayIndexOutOfBoundsException e) {
      throw new XBayaException("Wrong number of Inputs to For EachNode");
    }
    return inputValues;
  }
View Full Code Here

            invoker = new GFacInvoker(portTypeQName, gfacURL, messageBoxURL, leadContext);
        }

        if (invoker == null) {
            String message = "Cannot find an appropriate way to invoke the service";
            throw new XBayaException(message);
        }
        return invoker;
    }
View Full Code Here

            invoker = new GFacInvoker(portTypeQName, gfacURL, messageBoxURL, builder);
        }

        if (invoker == null) {
            String message = "Cannot find an appropriate way to invoke the service";
            throw new XBayaException(message);
        }
        return invoker;
    }
View Full Code Here

                logger.info("faultMessage: " + XMLUtil.xmlElementToString((XmlElement) this.faultMessage));
            }
            return this.success;
        } catch (RuntimeException e) {
            String message = "Error in invoking a service.";
            throw new XBayaException(message, e);
        }
    }
View Full Code Here

        try {
          this.registry.saveWorkflowExecutionServiceInput(new WorkflowServiceIOData(
              xsul5.XmlConstants.BUILDER.serializeToString(inputs),
              experimentId, node.getID(), this.workflowName));
        } catch (RegistryException e) {
          throw new XBayaException(e);
        }
        // deal with the outputs
      }
      XmlElement outputs = elem.newElement("outputs");
      elem.addChild(outputs);

      List<DataPort> outputPorts = node.getOutputPorts();
      for (DataPort outputPort : outputPorts) {
        String outputName = outputPort.getName();

        XmlElement outputParamElement = outputs.newElement(outputName);
        outputs.addChild(outputParamElement);
        Object ouputParamValue = invokerMap.get(node).getOutput(
            outputName);

        if (ouputParamValue instanceof org.xmlpull.v1.builder.XmlElement) {
          ouputParamValue = XMLUtil
              .xmlElement3ToXmlElement5((org.xmlpull.v1.builder.XmlElement) ouputParamValue);
        }

        if (ouputParamValue != null) {
          outputParamElement.addChild(ouputParamValue);
        } else {
          outputParamElement.addChild("null");
        }
      }
            try {
        this.registry.saveWorkflowExecutionServiceOutput(new WorkflowServiceIOData(xsul5.XmlConstants.BUILDER.serializeToString(outputs), experimentId, node.getID(),this.workflowName));
            } catch (RegistryException e) {
        throw new XBayaException(e);
      }
    }
  }
View Full Code Here

                    }
        }
      }

            if (((String) outputVal).length() == 0) {
                throw new XBayaException("Empty Output Generated");
            }
            outputVal = ((String) outputVal).substring(1,
                    ((String) outputVal).length());
    } else {
      Invoker fromInvoker = invokerMap.get(fromNode);
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.XBayaException

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.