Package org.uengine.kernel

Examples of org.uengine.kernel.Condition


        Evaluate eval = new Evaluate(pv, cond, null);
        ConditionTable.this.setValueAt(eval, selectedRow, selectedColumn);
      }
    }else{
      Role role = (Role)roleinput.getValue();
      Condition roleExist = new RoleExist(role);
     
      if(roleExistOrNotExist.getSelectedIndex()> 0){
        roleExist = new Not(roleExist);
      }
     
View Full Code Here


        conditionLabelPanel.add("Center", labelEditor);
       
        final ActionListener onEditDone = new ActionListener(){
          public void actionPerformed(ActionEvent arg0) {
           
            Condition theCondition = null;
           
            int where = switchActivity.getChildActivities().indexOf(designer.getActivity());
            Condition[] conditions = switchActivity.getConditions();
            if(conditions!=null && conditions.length > where){
              theCondition = conditions[where];
            }

            String conditionDescription = labelEditor.getText();
           
            if(theCondition!=null){
              if(conditionDescription==null || conditionDescription.trim().length()==0){
                conditionDescription = theCondition.toString();
              }else{
                theCondition.getDescription().setText(conditionDescription);
              }
            }
           
            conditionLabel.setText(conditionDescription);
            conditionLabelPanel.removeAll();
View Full Code Here

  }
 
  protected Condition makeCondition( DefaultMutableTreeNode node){
   
    And andCond = null;
    Condition firstCondition;
    //Tree child = (Tree)node.getChildAt(0);
   
    if( node.isLeaf())
      return (Condition)node.getUserObject();
   
View Full Code Here

        continue;
      }
             
      activity actGrp_ = (activity)adpt.convert(item, keyedContext);
     
      Condition condition = srcAct.getConditions()[i];
      if(condition instanceof Otherwise){
        tActivityContainer actContainer = new tActivityContainer();
        actContainer.setactivity_Group(actGrp_);
        destAct.setotherwise(actContainer);
      }else{
View Full Code Here

    if(data!=null){
      Condition[] conditions = (Condition[])data;
     
      int rowNum=0;
      for(int i=0;i<conditions.length;i++){
        Condition condition = conditions[i];
       
        if(condition instanceof Evaluate
            || condition instanceof Otherwise
            || condition instanceof RoleExist){//������ ��츸
          Or wrapperOr = new Or();
          And wrapperAnd = new And();
          wrapperOr.addCondition(wrapperAnd);
          wrapperOr.setDescription(condition.getDescription());
                   
          if(condition instanceof Evaluate || condition instanceof RoleExist){
            condition.setDescription(null);
            wrapperAnd.addCondition(condition);
          }else {
            wrapperAnd.addCondition(new Otherwise());
          }
           
          condition = wrapperOr;
        }
       
        Or or = (Or)condition;
        String key = or.getDescription().getText();
       
        Condition[] rows = or.getConditions();
        for(int j=0;j<rows.length;j++){
          And and = (And)rows[j];
         
          Condition[] cols = and.getConditions();
          //Default RowCount�� �Ѿ��츦 '�ؼ� Row Count�� ������� �Ѵ�.
          if(((DefaultTableModel)table.getModel()).getRowCount()<=rowNum)
            ((DefaultTableModel)table.getModel()).setRowCount(rowNum+1);
          for(int k=0;k<cols.length;k++){
            Condition cond = cols[k];
            if(cond!=null)
              table.setValueAt(cond, rowNum, k+START_INDEX);
          }
         
          table.setValueAt(key, rowNum, 1);
View Full Code Here

   
    for (int childCount = 0; childCount < children.size(); childCount++) {
      Activity childActivity = children.get(childCount);

      if (isFirstSwitchActivity(activity, childActivity)) {
        Condition condition = switchActivity.getConditions()[childCount];
        sb.append("[ "+condition.getDescription()+" ]");
        break;
      }
    }
    return description;
  }
View Full Code Here

TOP

Related Classes of org.uengine.kernel.Condition

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.