Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Throw


        if (result == null) result = caseWSDLElement(exit);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case BPELPackage.THROW: {
        Throw throw_ = (Throw)theEObject;
        Object result = caseThrow(throw_);
        if (result == null) result = caseActivity(throw_);
        if (result == null) result = caseExtensibleElement(throw_);
        if (result == null) result = caseExtensibleElement_1(throw_);
        if (result == null) result = caseWSDLElement(throw_);
View Full Code Here


    scan(throwStatement.getAnnotations());
   
    scan(throwStatement.getThrownExpression());
    ASTNodeData exprData = nodeDataStack.peek();
   
    Throw throwStmt = BPELFactory.eINSTANCE.createThrow();
    throwData.activity = throwStmt;
   
    if (exprData.constructor != null && exprData.constructorArgElementMap != null && exprData.constructorArgs != null){
      if (throwData.scopeStack != null){
        Variable variable = createTempVariable(throwData.scopeStack, exprData.xsdType);
        Assign assign = BPELFactory.eINSTANCE.createAssign();
        createNewException(assign,variable,exprData.constructorArgElementMap,exprData.constructorArgs);
        throwData.scopeStack.peek().addActivity(assign);
        throwStmt.setFaultName(exprData.xsdTypeQName);
        throwStmt.setFaultVariable(variable);
      }
    } else if (exprData.variable != null && exprData.xsdTypeQName != null){
      throwStmt.setFaultName(exprData.xsdTypeQName);
      throwStmt.setFaultVariable(exprData.variable);
    } else if (exprData.typeRefName != null && exprData.typeRefName.equals("java.lang.Exception")){
      // how do we handle this?
    }
   
    exit(throwStatement);
View Full Code Here

TOP

Related Classes of org.eclipse.bpel.model.Throw

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.