Examples of ProcessVariable


Examples of org.uengine.kernel.ProcessVariable

    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

Examples of org.uengine.kernel.ProcessVariable

      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

Examples of org.uengine.kernel.ProcessVariable

      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

Examples of org.uengine.kernel.ProcessVariable

      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

Examples of org.uengine.kernel.ProcessVariable

    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

Examples of org.uengine.kernel.ProcessVariable

      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

Examples of org.uengine.kernel.ProcessVariable

    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

Examples of org.uengine.kernel.ProcessVariable

      String messageName = act.getMessage().replace(' ', '_');
*/
    for(int j=0; j<messageDefinitions.length; j++){
     
      ParameterContext[] vars = messageDefinitions[j].getParameters();
      ProcessVariable var = null;
      String messageName = messageDefinitions[j].getName();     
     
      boolean bCustomizedStarter = false;
      if(starterMessage!=null && messageDefinitions[j].equals(starterMessage)){
        bCustomizedStarter = true;
      }
     
      out.print("  public " + (bCustomizedStarter ? "String on" + messageName + "(" : "void on" + messageName + "(String instanceId" ));

      if(vars!=null){
        String sep = (bCustomizedStarter ? "":", ");
        for(int i=0; i<vars.length; i++){
          try{
            ProcessVariable pvd = vars[i].getVariable();
            Class type = null;
            if(pvd!=null){
              type = pvd.getType();
            }else{
              type = (Class)vars[i].getType();
            }
           
            //review: messagedefinition need a field, which contains parameter type in Class
            out.print( sep + getActualTypeName(type) + " " + vars[i].getArgument());
            sep = ", ";
          }catch(Exception e){
            throw new UEngineException("Can't resolve type information of message '" + messageName + "', property '" + vars[i].getArgument()+"'");
          }
        }
      }else if(var!=null){       
        out.print(", " + getActualTypeName(var.getType()) + " " + var.getName());
      }
     
      out.print(") throws java.rmi.RemoteException");
     
      if(isInterface){
        out.println(";");
      }else{
        out.println("{");
        out.println("    try{");
       
        if(bCustomizedStarter ){
          out.println("      String instanceId = _startAndSendMessage(new Object[]{\"" + proc.getName() + "\", \"" + messageName +"\"");
        }else
          out.print  ("      _sendMessage(new Object[]{instanceId, \"" + messageName +"\"");
       
        if(vars!=null){
          for(int i=0; i<vars.length; i++){
            try{
              ProcessVariable pvd = vars[i].getVariable();
              Class type = null;
              if(pvd!=null){
                type = pvd.getType();
              }else{
                type = (Class)vars[i].getType();
              }
           
              out.print(", " + convert2Object(type, vars[i].getArgument().getText()));
View Full Code Here

Examples of org.uengine.kernel.ProcessVariable

    for(int i=0; i<selectedActivityComponents.size(); i++){
      ActivityDesigner activityDesigner = (ActivityDesigner)selectedActivityComponents.get(i);
      if(activityDesigner instanceof ArrowTargetSource){
        ArrowTargetSource arrowTargetSource = ((ArrowTargetSource)activityDesigner);
       
        ProcessVariable variables[] = processDefinition.getProcessVariables();
        if(variables !=null)
        for(int j=0; j<variables.length; j++){
          java.util.List links = arrowTargetSource.getArrowLinkingInfo(variables[j]);

          if(links!=null)
View Full Code Here

Examples of org.uengine.kernel.ProcessVariable

  public Serializable getProcVar(String key) throws Exception {
    if (StringUtils.isEmpty(key))
      return null;
    Serializable retObj = null;
    if (pdRemote != null && piRemote != null) {
      ProcessVariable variable = pdRemote.getProcessVariable(key);

      if (variable == null)
        throw new UEngineException(
            "Undeclared process variable reference : " + key);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.