Package org.uengine.kernel

Examples of org.uengine.kernel.Evaluate


            conditionButton.setSelected(true);
            enableAll(pl);
            disableAll(plOther);
            disableAll(roleExist);
           
            Evaluate evaluate = (Evaluate)cols.get(selectedColumn);
            if(evaluate!=null){
              pvi.setValue(ProcessVariable.forName(evaluate.getKey()));
             
              if(evaluate.getValue() instanceof ProcessVariable ){
                //group.setSelected(innerButtonModel, true);
                byVariable.setSelected(true);
                pvi2.setValue((ProcessVariable)evaluate.getValue());
               
              }else{
                //group.setSelected(innerButtonModel2, true);
                byUser.setSelected(true);
                //View ��ü
                CardLayout cl = (CardLayout)cards.getLayout();
                cl.show(cards, "byUser");
               
                    //������
                    dtInput.setValue(evaluate.getValue().getClass());
                valueInput.setValue(evaluate.getValue());
                dlg.pack();
               
              }
             
              for(int i=0; i<condition.length; i++){
                if(condition[i].equals(evaluate.getCondition()))         conditionBox.setSelectedIndex(i);
     
              }
            }
           
           
View Full Code Here


   
    //if(innerButtonModel.isSelected()){//��������
    if(command.equals(CONDITION_COMMAND)){
      if(byVariable.isSelected()){//��������
        ProcessVariable pv2 = (ProcessVariable)pvi2.getValue();
        Evaluate eval = new Evaluate(pv, cond, pv2);
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
     
      }else if(byUser.isSelected()){//��b�Է�
        Evaluate eval = new Evaluate(pv, cond, valueInput.getValue());
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
       
      }else{//Null
        Evaluate eval = new Evaluate(pv, cond, null);
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
      }
    }else{
      Role role = (Role)roleinput.getValue();
      Condition roleExist = new RoleExist(role);
View Full Code Here

      }else if( param.equals("Or")){
        newNode = new DefaultMutableTreeNode( new Or());

      }else{
        Evaluate eval = getNewEvaluate();
        newNode = new DefaultMutableTreeNode( eval);       
      }
     
      selected.add( newNode);
     
View Full Code Here

    if( keyInputField.getText().equals("") || valInputField.getText().equals(""))
      return null;

//end
     
    Evaluate newEvaluate = new Evaluate();
//    newEvaluate.setKey( ((ProcessVariable)keyInput.getValue()).getName() );
    newEvaluate.setKey( keyInputField.getText() );
    newEvaluate.setCondition( conditionBox.getSelectedItem().toString());
   
    try{
      Integer value = new Integer( valInputField.getText());
     
      newEvaluate.setValue( value);
      return newEvaluate;
    }catch( Exception e){}
   
    newEvaluate.setValue( valInputField.getText());
   
    return newEvaluate;
  }
View Full Code Here

        case__.setactivity_Group(actGrp_);     
        //review:
        tBoolean_expr booleanExp = new tBoolean_expr();
       
        if(condition instanceof Evaluate){
          Evaluate eval = ((Evaluate)condition);
          String key = eval.getKey();
          Object value = eval.getValue();
          String cond = eval.getCondition();
         
          booleanExp.set("bpws:getVariableData("+key+") " + cond + " " + value);
        }else
          booleanExp.set("MANUALLY");
       
View Full Code Here

            RoleExist role = (RoleExist)cols.get(j);
            if(role!=null){
              and.addCondition(role);
            }
          }else{
            Evaluate eval = (Evaluate)cols.get(j);
            if(eval!=null){
              and.addCondition(eval);
            }
          }
        }
        if(!isOtherwise && and.getConditionsVt().size()>0){
          or.addCondition(and);
        }
       
        if(isOtherwise){
          Otherwise otherwise = new Otherwise();
          map.put(key, otherwise);
          otherwise.getDescription().setText(key);
          ors.addCondition(otherwise);
        }else{
          map.put(key, or);
          or.getDescription().setText(key);
          ors.addCondition(or);
        }

      }else{
        And and = new And();
        for(int j=START_INDEX;j<cols.size();j++){
          if(cols.get(j) instanceof Evaluate){
            Evaluate eval = (Evaluate)cols.get(j);
            if(eval!=null){
              and.addCondition(eval);
            }
          }else{
            RoleExist role = (RoleExist)cols.get(j);
View Full Code Here

      And and = new And();
     
      for(int j=0; j<theConditionRow.size(); j++){
       
        if(theConditionRow.get(j) instanceof Evaluate){
          Evaluate evaluation = (Evaluate)theConditionRow.get(j);
          if(evaluation!=null)
            and.addCondition(evaluation);
        }else{
          RoleExist roleExist = (RoleExist)theConditionRow.get(j);
          if(roleExist!=null)
View Full Code Here

      for(int i=0;i<rows.length;i++){
        And and = (And)rows[i];
        Condition[] cols = and.getConditions();
        for(int j=0;j<cols.length;j++){
          if(cols[j] instanceof Evaluate){
            Evaluate eval = (Evaluate)cols[j];
            table.setValueAt(eval, i, j+1);
          }else{
            RoleExist roleExist = (RoleExist)cols[j];
            table.setValueAt(roleExist, i, j+1);
          }
View Full Code Here

      return (String)columnNames.get(col);
    }

    public Object getValueAt(int row, int col) {
      ConditionRow conditionRow = (ConditionRow)conditionRows.elementAt(row);
      Evaluate evaluatation = (Evaluate)conditionRow.get(getColumnName(col));
   
    return evaluatation;
    }
View Full Code Here

TOP

Related Classes of org.uengine.kernel.Evaluate

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.