Package org.apache.ode.bpel.rapi

Examples of org.apache.ode.bpel.rapi.InvalidProcessException


        // The engine should have checked to make sure that the messages that are  delivered conform
        // to the correct format; but you know what they say, don't trust anyone. 
        if (!(onMessage.variable.type instanceof OMessageVarType)) {
            String errmsg = "Non-message variable for receive: should have been picked up by static analysis.";
            __log.fatal(errmsg);
            throw new InvalidProcessException(errmsg);
        }

        OMessageVarType vartype = (OMessageVarType) onMessage.variable.type;

        // Check that each part contains what we expect.
        for (String pName : partNames) {
            QName partName = new QName(null, pName);
            Element msgPart = DOMUtils.findChildByName(msgEl, partName);
            Part part = vartype.parts.get(pName);
            if (part == null) {
                String errmsg = "Inconsistent WSDL, part " + pName + " not found in message type " + vartype.messageType;
                __log.fatal(errmsg);
                throw new InvalidProcessException(errmsg);
            }
            if (msgPart == null) {
                String errmsg = "Message missing part: " + pName;
                __log.fatal(errmsg);
                throw new InvalidContextException(errmsg);
View Full Code Here


    // find the faultData in the scope stack
    FaultData fault = _scopeFrame.getFault();
    if(fault == null){
      String msg = "Attempting to execute 'rethrow' activity with no visible fault in scope.";
      __log.error(msg);
      throw new InvalidProcessException(msg);
    }

    _self.parent.completed(fault,CompensationHandler.emptySet());
  }
View Full Code Here

        // The engine should have checked to make sure that the messages that are  delivered conform
        // to the correct format; but you know what they say, don't trust anyone. 
        if (!(onMessage.variable.type instanceof OMessageVarType)) {
            String errmsg = "Non-message variable for receive: should have been picked up by static analysis.";
            __log.fatal(errmsg);
            throw new InvalidProcessException(errmsg);
        }

        OMessageVarType vartype = (OMessageVarType) onMessage.variable.type;

        // Check that each part contains what we expect.
        for (String pName : partNames) {
            QName partName = new QName(null, pName);
            Element msgPart = DOMUtils.findChildByName(msgEl, partName);
            OMessageVarType.Part part = vartype.parts.get(pName);
            if (part == null) {
                String errmsg = "Inconsistent WSDL, part " + pName + " not found in message type " + vartype.messageType;
                __log.fatal(errmsg);
                throw new InvalidProcessException(errmsg);
            }
            if (msgPart == null) {
                String errmsg = "Message missing part: " + pName;
                __log.fatal(errmsg);
                throw new InvalidContextException(errmsg);
View Full Code Here

            return getBpelRuntime().getExpLangRuntime().evaluateAsBoolean(_oactivity.joinCondition,
                    new ExprEvaluationContextImpl(null, null,_linkVals));
        } catch (Exception e) {
            String msg = "Unexpected error evaluating a join condition: " + _oactivity.joinCondition;
            __log.error(msg,e);
            throw new InvalidProcessException(msg,e);
        }
    }
View Full Code Here

        }
        return data;
    }

    public Node getPartData(Element message, OMessageVarType.Part part) throws FaultException {
        throw new InvalidProcessException("Part data not available in this context.");
    }
View Full Code Here

    // find the faultData in the scope stack
    FaultData fault = _scopeFrame.getFault();
    if(fault == null){
      String msg = "Attempting to execute 'rethrow' activity with no visible fault in scope.";
      __log.error(msg);
      throw new InvalidProcessException(msg);
    }

    _self.parent.completed(fault,CompensationHandler.emptySet());
  }
View Full Code Here

    public Node getRootNode() {
        return _root;
    }

    public boolean isLinkActive(OLink olink) throws FaultException {
        throw new InvalidProcessException("Link status not available in this context.");
    }
View Full Code Here

    public boolean isLinkActive(OLink olink) throws FaultException {
        throw new InvalidProcessException("Link status not available in this context.");
    }

    public String readMessageProperty(OScope.Variable variable, OProcess.OProperty property) throws FaultException {
        throw new InvalidProcessException("Message properties not available in this context.");
    }
View Full Code Here

        throw new InvalidProcessException("Message properties not available in this context.");
    }


    public Node readVariable(OScope.Variable variable, OMessageVarType.Part part) throws FaultException {
        throw new InvalidProcessException("Message variables not available in this context.");
    }
View Full Code Here

    public Node readVariable(OScope.Variable variable, OMessageVarType.Part part) throws FaultException {
        throw new InvalidProcessException("Message variables not available in this context.");
    }

    public Node evaluateQuery(Node root, OExpression expr) throws FaultException {
        throw new InvalidProcessException("Query language not available in this context.");
    }
View Full Code Here

TOP

Related Classes of org.apache.ode.bpel.rapi.InvalidProcessException

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.