Package org.uengine.kernel

Examples of org.uengine.kernel.ProcessVariable


    }
   
    for(int i=0; i<mappingContext.getMappingElements().length; i++){
      ParameterContext paramContext = mappingContext.getMappingElements()[i];
      String tableAndFieldName = paramContext.getArgument().getText();
      ProcessVariable variable = paramContext.getVariable();
      boolean isKey = ((MappingElement)paramContext).isKey();
 
      tableAndFieldName = tableAndFieldName.replace('.','@');
      String[] tableAndFieldNames = tableAndFieldName.split("@");
      String tableName = tableAndFieldNames[0];
View Full Code Here


     
      processVariableMap = new HashMap();
     
      if (processVariables != null) {
        for (int i = 0; i < processVariables.length; i++) {
          ProcessVariable processVariable = processVariables[i];
          String key = processVariable.getName();
          Object value = processVariable.get(instance, "", key);
          if (value instanceof String) {
            processVariableMap.put(key, value != null ? (String) value : null);
          } else if (value instanceof ProcessVariableValue) {
            processVariableMap.put(key, value != null ? (ProcessVariableValue) value : null);
          } else {
View Full Code Here

      public void onValueChanged(){
//System.out.println("AssignActivityDescriptor::in onValueChanged (35) getValue().class = " + getValue().getClass());
//System.out.println("AssignActivityDescriptor::in onValueChanged (36) getValue() = " + getValue());
       
        try{
          ProcessVariable var = (ProcessVariable)getValue();
       
          String clsName = var.getType().getName();
          if(clsName==null){
            clsName = var.getXmlBindingClassName();
          }
 
          StringBuffer sb = new StringBuffer();
         
          if(clsName!=null){
            sb.append("importPackage(Packages.java.lang);\n");
            sb.append("value = Class.forName(\"");
            sb.append(clsName);
            sb.append("\").newInstance();\n");
          }
         
          if(var.getType()!=null){
            try{
              Type descriptor = new ObjectType(var.getType());
              FieldDescriptor [] fds = descriptor.getFieldDescriptors();
             
              int stringType = FieldDescriptor.getMappingTypeOfClass(String.class);
              for(int i=0; i<fds.length; i++){
                sb.append("value.set");
View Full Code Here

    try{
      ProcessInstance instance = getInstance(instanceId);
     
      if(varKey.indexOf('.') < 0){
        ProcessDefinition definition = instance.getProcessDefinition();
        ProcessVariable variable = definition.getProcessVariable(varKey);
       
        if(variable == null) throw new UEngineException("Undeclared process variable reference : " + varKey);
       
        ProcessVariableValue theValue = definition.getProcessVariable(varKey).getMultiple(instance, scope);
       
View Full Code Here

      outterButtonModel2.setSelected(true);
    }
  }*/
 
  public void confirm(String command){
    ProcessVariable pv = (ProcessVariable)pvi.getValue();
    String cond = (String)conditionBox.getSelectedItem();
   
    //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());
View Full Code Here

      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv;{
      pv = new ProcessVariable();
      pv.setName("var1");
      pv.setType(Integer.class);       
      def.setProcessVariables(new ProcessVariable[]{pv});
    }
     
    Activity childActivity = new DefaultActivity("test");     
    def.setAdhoc(true);   
View Full Code Here

      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv1;{
      pv1 = new ProcessVariable();
      pv1.setName("varString");
      pv1.setType(String.class);       
    }
    ProcessVariable pv2;{
      pv2 = new ProcessVariable();
      pv2.setName("varInteger");
      pv2.setType(Integer.class);       
    }
    ProcessVariable pv3;{
      pv3 = new ProcessVariable();
      pv3.setName("varLong");
      pv3.setType(Long.class);       
    }
    ProcessVariable pv4;{
      pv4 = new ProcessVariable();
      pv4.setName("varBoolean");
      pv4.setType(Boolean.class);       
    }
    ProcessVariable pv5;{
      pv5 = new ProcessVariable();
      pv5.setName("varCalendar");
      pv5.setType(Calendar.class);       
    }
    ProcessVariable pv6;{
      pv6 = new ProcessVariable();
      pv6.setName("varDate");
      pv6.setType(Date.class);       
    }
    ProcessVariable pv7;{
      pv7 = new ProcessVariable();
      pv7.setName("varAny");
    }

    def.setProcessVariables(new ProcessVariable[]{pv1, pv2, pv3, pv4, pv5, pv6, pv7});

     
View Full Code Here

    AbstractActivityDesigner.setDebugger(false); //TODO somewhat wierld
   
    final Type processVariableTable = new Type();{
      ProcessVariable[] pvs = procDef.getProcessVariables();
      for(int i=0; i<pvs.length; i++){
        ProcessVariable pv = pvs[i];
        FieldDescriptor fd = new FieldDescriptor(pv.getName(), pv.getDisplayName().getText());
        fd.setType(pv.getType());
               
        processVariableTable.addFieldDescriptor(fd);
      }
    }
    processVariableInputForm = new InputFormSubstance(processVariableTable);
View Full Code Here

      new Role("referencer"),
      new Role("drafter"),
      new Role("approver")
    });
       
    ProcessVariable pv1;{
      pv1 = new ProcessVariable();
      pv1.setName("varString");
      pv1.setType(String.class);       
    }
    ProcessVariable pv2;{
      pv2 = new ProcessVariable();
      pv2.setName("varInteger");
      pv2.setType(Integer.class);       
    }
    ProcessVariable pv3;{
      pv3 = new ProcessVariable();
      pv3.setName("varLong");
      pv3.setType(Long.class);       
    }
    ProcessVariable pv4;{
      pv4 = new ProcessVariable();
      pv4.setName("varBoolean");
      pv4.setType(Boolean.class);       
    }
    ProcessVariable pv5;{
      pv5 = new ProcessVariable();
      pv5.setName("varCalendar");
      pv5.setType(Calendar.class);       
    }
    ProcessVariable pv6;{
      pv6 = new ProcessVariable();
      pv6.setName("varDate");
      pv6.setType(Date.class);       
    }
    ProcessVariable pv7;{
      pv7 = new ProcessVariable();
      pv7.setName("varAny");
    }

    def.setProcessVariables(new ProcessVariable[]{pv1, pv2, pv3, pv4, pv5, pv6, pv7});

     
View Full Code Here

    this.processInstance = instance;
   
    final Type processVariableTable = new Type();{
      ParameterContext[] pcs = humanActivity.getParameters();
      for(int i=0; i<pcs.length; i++){
        ProcessVariable pv = pcs[i].getVariable();
        FieldDescriptor fd = new FieldDescriptor(pv.getName(), pv.getDisplayName().getText());
        fd.setType(pv.getType());
       
        Inputter specifiedInputter = pv.getInputter();
        if(specifiedInputter!=null){
          fd.setInputter(specifiedInputter);
        }
               
        processVariableTable.addFieldDescriptor(fd);
View Full Code Here

TOP

Related Classes of org.uengine.kernel.ProcessVariable

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.