Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaRuntimeException


    try {
      Workflow newWorkflow = new Workflow(newXML);
      return newWorkflow;
    } catch (GraphException e) {
      // This should not happen.
      throw new XBayaRuntimeException(e);
    } catch (ComponentException e) {
      // This should not happen.
      throw new XBayaRuntimeException(e);
    }
  }
View Full Code Here


        streamTransformer.addReceive(this.odeWorkflowWSDL, activeNode,
            this);
        streamTransformer
            .removeOutputMessageReferences(this.odeWorkflowWSDL);
      } catch (CloneNotSupportedException e) {
        throw new XBayaRuntimeException(e);
      }

    } else {
      // StreamTransformer streamTransformer = new StreamTransformer();
      // streamTransformer.removeReply(odeProcess);
View Full Code Here

    protected void removeEdge(Edge edge) {
        if (this.edges.contains(edge)) {
            this.edges.remove(edge);
            // this.node.edgeWasRemoved(edge);
        } else {
            throw new XBayaRuntimeException("The edge doesn't exist.");
        }
    }
View Full Code Here

        case EPR:
            portType = "epr";
            break;
        default:
            // Should not happen.
            throw new XBayaRuntimeException("Wrong type of the port: "
                    + this.kind);
        }
        int index = getIndex();
        return nid + "_" + portType + "_" + index;
    }
View Full Code Here

        if (this.componentPort == null) {
            ComponentPort port = super.getComponentPort();
            if (port instanceof DynamicComponentPort) {
                this.componentPort = (DynamicComponentPort) port;
            }else {
              throw new XBayaRuntimeException("UNEXPECTED ERROR: Unable to resolve Port");
            }
           
        }
        return this.componentPort;
    }
View Full Code Here

      if(xmlNamespace.getName().equals(messageQname.getNamespaceURI())){
        return xmlNamespace.getPrefix();
      }
    }
   
    throw new XBayaRuntimeException("Cannot locate the Namespace  for Qname:"+messageQname+" in the BPEL");
  }
View Full Code Here

        }
       
       
      }
    }
    throw new XBayaRuntimeException("Unable to find the Message for the PortType "+portType +" operation:"+opName);
  }
View Full Code Here

      GpelVariable gpelVariable = iterator.next();
      if(variable.equals(gpelVariable.getName())){
        return gpelVariable;
      }
    }
    throw new XBayaRuntimeException("Unable to fine the variable :"+variable+ "  in the BPEL variables "+variables);
  }
View Full Code Here

      GpelActivity next = iterator.next();
      if(isSequence(next) || isFlow(next)){
        evaluateFlowAndSequenceForAddingInits(wsdls, workflowWSDL, next, list);
      }else if(isInvoke(next|| isReply(next)){
        if(last == null || !isAssign(last)){
          throw new XBayaRuntimeException("Assign activity not found for the Invoke "+next.xmlStringPretty());
        }
       
        GpelAssign assign = (GpelAssign)last;
        XmlNamespace ns = assign.xml().getNamespace();
       
        XmlElement container = XmlConstants.BUILDER.parseFragmentFromString("<dummyelement></dummyelement>");
       
       
        String portTypeattr = next.xml().attributeValue(PORT_TYPE_STR);
        String operation = next.xml().attributeValue(OPERATION_STR);
        if(null == portTypeattr || "".equals(portTypeattr)){
          throw new XBayaRuntimeException("No Porttype found for Invoke:"+next);
        }
        String portTypeName = portTypeattr.substring(portTypeattr.indexOf(':')+1);
        String messagePartName = null;
        if(isInvoke(next)){
          Iterator<String> keys = wsdls.keySet().iterator();
View Full Code Here

      GpelActivity next = iterator.next();
      if (isSequence(next) || isFlow(next)) {
        addVariableManipulationBeforeInvoke(next);
      } else if (isInvoke(next)) {
        if (last == null || !isAssign(last)) {
          throw new XBayaRuntimeException(
              "Assign activity not found for the Invoke"
                  + next.xmlStringPretty());
        }

        // we are good and should add the header copy.
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.XBayaRuntimeException

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.