Examples of ODEClient


Examples of edu.indiana.extreme.xbaya.ode.ODEClient

    // TODO error check for user inputs

    final List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow.getGraph());
    final org.xmlpull.v1.builder.XmlElement inputs = builder.newFragment("inputs");
    ODEClient client = new ODEClient();
    for (int i = 0; i < inputNodes.size(); i++) {
      InputNode inputNode = inputNodes.get(i);
      XBayaTextField parameterTextField = this.parameterTextFields.get(i);
      String id = inputNode.getID();
      String value = parameterTextField.getText();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

        this.workflow = workflow;

  }
 
  public static SubWorkflowComponent getInstance(Workflow workflow) throws ComponentException{
    new ODEClient().getInputs(workflow);
    return new SubWorkflowComponent(workflow);
  }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

  public GenericSubWorkflowComponent(Workflow workflow) {
    super();
    this.setName(workflow.getName());
    this.workflow = workflow;
    ODEClient odeClient = new ODEClient();
    List<InputNode> inputNodes = odeClient.getInputNodes(workflow);
    this.inputs = new LinkedList<CepComponentPort>();
    this.outputs = new LinkedList<CepComponentPort>();
    for (InputNode inputNode : inputNodes) {
      this.inputs.add(new GenericWubWorkflowComponentPort(inputNode.getOutputPort(0).getToPorts().get(0).getID(), inputNode
          .getParameterType(), this));
    }
    LinkedList<OutputNode> outputNodes = odeClient.getoutNodes(workflow);
    for (OutputNode outputNode : outputNodes) {
      this.outputs.add(new GenericWubWorkflowComponentPort(outputNode.getInputPort(0).getFromPort().getID(),
          outputNode.getParameterType(), this));
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

        XBayaConstants.DEFAULT_DSC_URL,
        XBayaConstants.DEFAULT_ODE_URL.toString());
    System.out.println("llllllllllllllllllllllllll");
    System.out.println(wsdl.xmlStringPretty());

    ODEClient client = new ODEClient();
    Pair<String, String>[] in = new Pair[3];

    List<WSComponentPort> inputs = client.getInputs(workflow);
    for (WSComponentPort port : inputs) {
      if (port.getName().equals("CrossCuttingConfigurations")) {
        // Object val = client.parseValue(port,

        String val1 = "<CrossCuttingConfigurations n2:leadType='LeadCrosscutParameters' xmlns:n2='http://www.extreme.indiana.edu/namespaces/2004/01/gFac'>"
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

    } catch (ComponentException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
    System.err.println("Setting Input values");
    List<InputNode> inputNodes = new ODEClient().getInputNodes(workflow);
    for (InputNode inputNode : inputNodes) {
      for (NameValue input : inputs) {
        if (inputNode.getName().equals(input.getName())) {
          inputNode.setDefaultValue(input.getValue());
          break;
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

    final List<InputNode> inputNodes = GraphUtil.getInputNodes(this.workflow
        .getGraph());
    final org.xmlpull.v1.builder.XmlElement inputs = builder
        .newFragment("inputs");
    ODEClient client = new ODEClient();
    for (int i = 0; i < inputNodes.size(); i++) {
      InputNode inputNode = inputNodes.get(i);
      XBayaTextField parameterTextField = this.parameterTextFields.get(i);
      String id = inputNode.getID();
      String value = parameterTextField.getText();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

      invoker.setOperation(wsComponent.getOperationName());
    }

    // find inputs
    List<DataPort> inputPorts = node.getInputPorts();
    ODEClient odeClient = new ODEClient();
    List<WSComponentPort> inputComponents = odeClient.getInputs(this.workflow);
    for (DataPort port : inputPorts) {
      Object inputVal = findInputFromPort(port);

      /*
       * Need to override inputValue if it is odeClient
       */
      Node fromNode = port.getFromNode();
      if (port.getFromNode() instanceof InputNode) {
        for (WSComponentPort wsComponentPort : inputComponents) {
          if (fromNode.getName().equals(wsComponentPort.getName())) {
            inputVal = odeClient.parseValue(wsComponentPort, (String) inputVal);
          }
        }
      }

      if (null == inputVal) {
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

    configurations[6] = new NameValue();
    configurations[6].setName(HEADER_ELEMENT_BROKER);
    configurations[6].setValue(XBayaConstants.DEFAULT_BROKER_URL.toString());
   
    LinkedList<NameValue> nameValPairsList = new LinkedList<NameValue>();
    List<InputNode> wfInputs = new ODEClient().getInputNodes(workflow);
    for (InputNode node : wfInputs) {
      NameValue nameValue = new NameValue();
      nameValue.setName(node.getName());
      nameValue.setValue(node.getDefaultValue().toString());
    }
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

* @author Chathura Herath
*/
public class StreamClient {
 
  public void invoke(String operationName, WsdlDefinitions wsdl, String name, String topic){
    ODEClient odeClient = new ODEClient();
    GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
    Workflow workflow = xregistryAccesser.getWorkflow(name);
   
    GsiInvoker secureInvoker = null;
    secureInvoker = new GsiInvoker(credential, XBayaSecurity
        .getTrustedCertificates());

    try {
      LeadContextHeader defaultLeadHeader = odeClient.getDefaultLeadHeader(workflow, topic,
          credential.getName().toString(), new URI(topic), null, null);
      defaultLeadHeader.setExperimentId(topic);
      LEADWorkflowInvoker invoker = new LEADWorkflowInvoker(wsdl,
          defaultLeadHeader, null, secureInvoker, operationName);
     
View Full Code Here

Examples of edu.indiana.extreme.xbaya.ode.ODEClient

    return this.instance.getInstanceId().toString();
  }

  public Pair<String,String> invoke(Pair<String, String>[] inputs) {
   
    List<WSComponentPort> wfInputs = new ODEClient()
    .getInputs(this.workflow);

    for (Iterator<WSComponentPort> iterator = wfInputs.iterator(); iterator
        .hasNext();) {
      WSComponentPort componentPort = iterator.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.