Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Variable


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @customized
   */
  public void setFaultMessageType(Message newFaultMessageType) {
    Variable variable = getFaultVariable();
    if (variable != null && variable instanceof Variable) {
      ((Variable)variable).setMessageType(newFaultMessageType);
    }
    Message oldFaultMessageType = faultMessageType;
    faultMessageType = newFaultMessageType;
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @customized
   */
  public void setFaultElement(XSDElementDeclaration newFaultElement) {
    Variable variable = getFaultVariable();
    if (variable != null && variable instanceof Variable) {
      ((Variable)variable).setXSDElement(newFaultElement);
    }
    XSDElementDeclaration oldFaultElement = faultElement;
    faultElement = newFaultElement;
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setVariable(Variable newVariable) {
    Variable oldVariable = variable;
    variable = newVariable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.ON_MESSAGE__VARIABLE, oldVariable, variable));
  }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setVariable(Variable newVariable) {
    Variable oldVariable = variable;
    variable = newVariable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.FROM__VARIABLE, oldVariable, variable));
  }
View Full Code Here

     * @customized
     */
 
    public Part getPart() {
        if (part == null && partName != null) {
            Variable aVar = getVariable();
            if (aVar != null) {
                Message message = aVar.getMessageType();
                if (message != null) {
                    // Create an part proxy with the deserialized part name.
                    part = new PartProxy(eResource(), message, partName);
                    partName = null;
                }
View Full Code Here

   
    scan(localVariable.getDefaultExpression());
    ASTNodeData defExprData = nodeDataStack.peek();
   
action:  if (localVarData.scopeStack != null){
      Variable variable = BPELFactory.eINSTANCE.createVariable();
      variable.setName(localVariable.getSimpleName());
      if (typeNodeData.xsdType != null)
        variable.setType(typeNodeData.xsdType);
      localVarData.scopeStack.peek().addVariable(variable);
      localVarData.variable = variable;
     
      if (localVariable.getDefaultExpression() != null){
        From from = BPELFactory.eINSTANCE.createFrom();
View Full Code Here

    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);
View Full Code Here

        binOp = BinaryOperatorKind.MINUS;
      else
        binOp = BinaryOperatorKind.PLUS;
      if (operandNodeData.variable != null && operandNodeData.xpathExpr != null){
      // create temp variable
        Variable tmpVar = createTempVariable(unaryOperatorContext.scopeStack,typeNodeData.xsdType);
       
      // assign real variable value to temp variable
        From from = BPELFactory.eINSTANCE.createFrom();
        from.setVariable(operandNodeData.variable);
        Query fromQuery = BPELFactory.eINSTANCE.createQuery();
        fromQuery.setQueryLanguage(XPATH_NAMESPACE);
        fromQuery.setValue(operandNodeData.xpathExpr.evaluate());
        from.setQuery(fromQuery);
       
        To to = BPELFactory.eINSTANCE.createTo();
        to.setVariable(tmpVar);
       
        Copy copy = BPELFactory.eINSTANCE.createCopy();
        copy.setTo(to);
        copy.setFrom(from);
        Assign assign = BPELFactory.eINSTANCE.createAssign();
        assign.getCopy().add(copy);
       
      // add assignment activty to curr scope
        operandNodeData.scopeStack.peek().addActivity(assign);
     
      // increment real variable
        try {
          xpathBinOperation.setLeftSide(operandNodeData.xpathExpr);
          xpathBinOperation.setOperator(xpathBinOpMap.getBinOp(binOp));
          xpathBinOperation.setRightSide(xpathNumberOne);
         
          from = BPELFactory.eINSTANCE.createFrom();
          from.setVariable(operandNodeData.variable);
          fromQuery = BPELFactory.eINSTANCE.createQuery();
          fromQuery.setQueryLanguage(XPATH_NAMESPACE);
          fromQuery.setValue(xpathBinOperation.evaluate());
          from.setQuery(fromQuery);
         
          to = BPELFactory.eINSTANCE.createTo();
          to.setVariable(operandNodeData.variable);
         
          copy = BPELFactory.eINSTANCE.createCopy();
          copy.setTo(to);
          copy.setFrom(from);
          assign = BPELFactory.eINSTANCE.createAssign();
          assign.getCopy().add(copy);
     
      // add increment activity to curr scope
          operandNodeData.scopeStack.peek().addActivity(assign);
     
      // set variable reference = temp variable
          operandNodeData.variable = tmpVar;
          XpathVariableRefExpression xpathVarRef = xpathFactory.createVariableReference();
          xpathVarRef.setVariableName(tmpVar.getName());
          xpathVarRef.setType(typeNodeData.xsdTypeQName);
          operandNodeData.xpathExpr = xpathVarRef;
         
        } catch (Exception e) {}
     
View Full Code Here

          XSDElementDeclaration elem = fieldElementDeclMap.get(e);
          elem.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,elem.getElement()));
        }
        if (fieldVariableMap.get(e) != null){
          Variable variable = fieldVariableMap.get(e);
          variable.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,variable.getElement()));
        }
        if (methodOperationMap.get(e) != null){
          Operation operation = methodOperationMap.get(e);
          operation.updateElement();
          fireAddMappingEvent(new JbprocessElementMapping(e,operation.getElement()));
View Full Code Here

          CtClass ctClass = (CtClass)f.getDeclaringType();       
          if (isThisClassABpelProcess(ctClass) && fieldVariableMap.get(f) == null){         
            org.eclipse.bpel.model.Process process = classProcessMap.get(f.getDeclaringType());
            if (process != null){
              String variableName = f.getSimpleName();
              Variable var = BPELFactory.eINSTANCE.createVariable();
              var.setName(variableName);       
              var.setType(fieldType);
              fieldVariableMap.put(f, var);
              Stack<BpelScope> scopeStack = classScopeMap.get(ctClass);
              scopeStack.firstElement().addVariable(var);
            }
          }
View Full Code Here

TOP

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

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.