Package org.eclipse.bpel.model

Examples of org.eclipse.bpel.model.Variable


      }
    }
  }
 
  Variable createTempMsgVar(Message msg, BpelScope scope){   
    Variable variable = BPELFactory.eINSTANCE.createVariable();
    variable.setName("tmpMsgVar" + tmpMsgCounter++);   
    variable.setMessageType(msg);
    scope.addVariable(variable);
    return variable;
  }
View Full Code Here


  Variable createTempMsgVar(Message msg, Stack<BpelScope> scopeStack){       
    return createTempMsgVar(msg,scopeStack.peek());
  }
 
  Variable createTempVariable(Stack<BpelScope> scopeStack, XSDTypeDefinition type){
    Variable variable = BPELFactory.eINSTANCE.createVariable();
    variable.setName("_tmpvar" + tmpVarCounter++);
    variable.setType(type);
    scopeStack.peek().addVariable(variable);
    return variable;
  }
View Full Code Here

  }
  Variable resolveVariable(Stack<BpelScope> scopeStack, String name){
    if (scopeStack != null && scopeStack.size() > 0 && name != null){
      for(int i=scopeStack.size() -1; i >= 0; i--){
        BpelScope scope = scopeStack.get(i);
        Variable variable = scope.getVariable(name);
        if (variable != null)
          return variable;
      }
    }
    return null;
View Full Code Here

    scan(replyActivities);
    // scan the single process method next
    scan(processMethod);
  }
  <T> void setFieldDefaultValue(CtField<T> f, XpathExpression expr){
    Variable variable = fieldVariableMap.get(f);
    if (variable != null && expr != null){
      From from = BPELFactory.eINSTANCE.createFrom();
      String val = expr.evaluate();
      from.setLiteral(val);
      //if (!val.contains("<") && !val.contains(">"))
        from.setUnsafeLiteral(true); // is this really necessary?
      variable.setFrom(from);
    }
  }
View Full Code Here

      variable.setFrom(from);
    }
  }
  void setFieldExceptionDefaultValue(BpelScope scope, CtField<?> f){   
    if (scope != null && f != null){     
      Variable variable = fieldVariableMap.get(f);
      if (variable != null){
        if (f.getDefaultExpression() != null){         
          scan(f.getDefaultExpression());
          ASTNodeData exprData = nodeDataStack.peek();         
          if (exprData.constructorArgElementMap != null && exprData.constructorArgs != null){
View Full Code Here

 
  @SuppressWarnings("unchecked")
  void setInvokeParameters(Operation operation, Invoke invoke, List<CtExpression<?>> args, BpelScope scope){
    javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
    List<Part> msgParts = operation.getInput().getMessage().getOrderedParts(null);
    Variable tmp = createTempMsgVar((Message)operation.getInput().getMessage(),scope);
    invoke.setInputVariable(tmp);
   
    Assign assign = BPELFactory.eINSTANCE.createAssign();
   
    for (int argIndex=0; argIndex < args.size(); argIndex++){
View Full Code Here

    ASTNodeData resultData = nodeDataStack.peek();
   
    Operation operation = invoke.getOperation();
    javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
    List<Part> msgParts = operation.getOutput().getMessage().getOrderedParts(null);
    Variable tmp = createTempMsgVar((Message)operation.getOutput().getMessage(),scope);
    invoke.setOutputVariable(tmp);
   
    From from = BPELFactory.eINSTANCE.createFrom();
    from.setVariable(tmp);
    Query fromQuery = BPELFactory.eINSTANCE.createQuery();
View Full Code Here

  @SuppressWarnings("unchecked")
  void setRecvParameters(Operation operation, Receive recv, List<CtExpression<?>> args, BpelScope scope){
    javax.jws.soap.SOAPBinding soapBinding = operationSoapBindingMap.get(operation);
    List<Part> msgParts = operation.getInput().getMessage().getOrderedParts(null);
    //Variable tmp = createTempMsgVar((Message)operation.getInput().getMessage(),scopeStack);
    Variable tmp = createTempMsgVar((Message)operation.getInput().getMessage(),scope);
    recv.setVariable(tmp);
   
    Assign assign = BPELFactory.eINSTANCE.createAssign();
   
    for (int argIndex=0; argIndex < args.size(); argIndex++){
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setOutputVariable(Variable newOutputVariable) {
    Variable oldOutputVariable = outputVariable;
    outputVariable = newOutputVariable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.INVOKE__OUTPUT_VARIABLE, oldOutputVariable, outputVariable));
  }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setInputVariable(Variable newInputVariable) {
    Variable oldInputVariable = inputVariable;
    inputVariable = newInputVariable;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, BPELPackage.INVOKE__INPUT_VARIABLE, oldInputVariable, inputVariable));
  }
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.