Package org.metaworks

Examples of org.metaworks.FieldDescriptor


      final ProcessDesigner finalThis = this;
      Type saveDialog =
        new Type(
          "Select a partner role to generate it's process",
          new FieldDescriptor[]{
            new FieldDescriptor("Role",
              new Object[]{
                "inputter",
                new org.uengine.processdesigner.inputters.RoleInput((ProcessDefinition)getProcessDefinitionDesigner().getActivity())
              }             
            ),
            new FieldDescriptor("Save Location",
              new Object[]{
                "inputter",
                new org.metaworks.inputter.FileInput()
              }
            )     
View Full Code Here


  }
 
  public void settings(){
    Type settingsTable = new Type("settings",
      new FieldDescriptor[]{
        new FieldDescriptor("property"),
        new FieldDescriptor("value")
      }
    );
   
    settingsTable.getFieldDescriptor("property").setUpdatable(false);
   
View Full Code Here

        Class testcls = metaValue.getTypeClass();
       
        ObjectType objType = new ObjectType(testcls);
        FieldDescriptor[] fieldDescriptors = objType.getFieldDescriptors();
        for(int j=0; j<fieldDescriptors.length; j++){
          FieldDescriptor fd = fieldDescriptors[j];
          variableNode.add(createRecord(fd.getName(),variable.getName() + "." + fd.getName(), isSource));
        }
      } catch (Exception e) {
        e.printStackTrace();
      }
     
View Full Code Here

    type.setName((String)ProcessDesigner.getInstance().getActivityTypeNameMap().get(AssignActivity.class));

    type.removeFieldDescriptor("Val");
    type.removeFieldDescriptor("AssignValueInputType");
   
    FieldDescriptor fd;
    fd = type.getFieldDescriptor("AssignStyle");
    fd.setInputter(new RadioInput(
        new String[] { "Java Style", "Native Style" },
        new Object[] { JAVA_STYLE, NATIVE_STYLE }
        )
    );
   
View Full Code Here

 
  protected static final String MAIL_SERVICE = "mailServer";
 
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("AttachFiles");

    org_uengine_kernel_ProcessVariableArrayInput varArrinputter = (org_uengine_kernel_ProcessVariableArrayInput) fd.getInputter();
    varArrinputter.setFilter(FileContext.class.getName());
  }
View Full Code Here

   
    type.setFieldOrder(new String[] {
        "Minute", "Hour", "DayOfMonth", "Month", "DayOfWeek", "Year", "ManualInput"
    });
   
    FieldDescriptor fd;
   
    fd = type.getFieldDescriptor("Minute");
      String[] minutes = new String[61];
      for (int i = 0; i < 60; i++) {
        minutes[i] = String.valueOf(i);
      }
      minutes[60] = "*";
    fd.setInputter(new SelectInput(minutes));
   
    fd = type.getFieldDescriptor("Hour");
      String[] hours = new String[25];
      for (int i = 0; i < 24; i++) {
        hours[i] = String.valueOf(i);
      }
      hours[24] = "*";
    fd.setInputter(new SelectInput(hours));
   
    fd = type.getFieldDescriptor("DayOfMonth");
      String[] dayOfMonth = new String[34];
      int count = 0 ;
      for (int i = 1; i < 32; i++) {
        dayOfMonth[count++] = String.valueOf(i);
      }
      dayOfMonth[31] = "L";
      dayOfMonth[32] = "*";
      dayOfMonth[33] = "?";
    fd.setInputter(new SelectInput(dayOfMonth));
   
    fd = type.getFieldDescriptor("Month");
    fd.setInputter(new SelectInput(new String[] {
        "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "*"
    }));
   
    fd = type.getFieldDescriptor("DayOfWeek");
    fd.setInputter(new SelectInput(new String[] {
        "MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", "MON-FRI", "*", "?"
    }));
   
    Calendar c = Calendar.getInstance();
    fd = type.getFieldDescriptor("Year");
      String[] year = new String[51];
      int yearCount = 0;
      year[yearCount++] = "*";
      for (int i = c.get(Calendar.YEAR); i < c.get(Calendar.YEAR) + 50; i++) {
        year[yearCount++] = String.valueOf(i);
      }
    fd.setInputter(new SelectInput(year));
   
  }
View Full Code Here

    setName("WorkFlowActivity");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
   
    FieldDescriptor fd;
   
    type.removeFieldDescriptor("AllowAnonymous");
    type.removeFieldDescriptor("NotificationWorkitem");
    type.removeFieldDescriptor("SendEmailWorkitem");
    type.removeFieldDescriptor("Keyword");
    type.removeFieldDescriptor("Tool");
    type.removeFieldDescriptor("Workload");
    type.removeFieldDescriptor("Priority");
    type.removeFieldDescriptor("ReferenceRole")
    type.removeFieldDescriptor("Cost");   
    type.removeFieldDescriptor("StatusCode");   
    type.removeFieldDescriptor("ActivityIcon");
    type.removeFieldDescriptor("Hidden");
    type.removeFieldDescriptor("QueuingEnabled");   
    type.removeFieldDescriptor("FaultTolerant");   
    type.removeFieldDescriptor("RetryDelay");     
    type.removeFieldDescriptor("RetryLimit");
    type.removeFieldDescriptor("DynamicChangeAllowed")
    type.removeFieldDescriptor("Instruction")
    type.removeFieldDescriptor("Input")
   
    fd = type.getFieldDescriptor("ExtValue1")
    fd.setDisplayName("FormId");
    fd = type.getFieldDescriptor("ExtValue2");
    fd.setDisplayName("SubCtrlId1");
    fd = type.getFieldDescriptor("ExtValue3");
    fd.setDisplayName("SubCtrlId2");
    type.removeFieldDescriptor("ExtValue4");
    type.removeFieldDescriptor("ExtValue5");
    type.removeFieldDescriptor("ExtValue6");
    type.removeFieldDescriptor("ExtValue7");
    type.removeFieldDescriptor("ExtValue8");
View Full Code Here

  public static final int LOOPINGOPTION_FINISHONREJECT = 2;

  public final static String KEY_APPR_LINE_STATUS = "KEY_APPR_LINE_STATUS";

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("ReferencerRole");

    fd = type.getFieldDescriptor("ReceiverRole");
 
    //TODO loopingOption
    fd = type.getFieldDescriptor("LoopingOption");
    fd.setInputter(new RadioInput(new String[]{"Auto","Loop","Finish"}, new Integer[]{FormApprovalLineActivity.LOOPINGOPTION_AUTO, FormApprovalLineActivity.LOOPINGOPTION_REPEATONREJECT, FormApprovalLineActivity.LOOPINGOPTION_FINISHONREJECT}));
    //fd.setDisplayName("");
   
    type.setName((String)ProcessDesigner.getInstance().getActivityTypeNameMap().get(FormApprovalLineActivity.class));
  }
View Full Code Here

  private static final String URL_GroupListXML_JSP = "/usermanager/groupListXML.jsp";
 
  public static void metaworksCallback_changeMetadata(Type type){
    RoleResolutionContext.metaworksCallback_changeMetadata(type); //call the super's one first

    FieldDescriptor fd;
   
    fd = type.getFieldDescriptor("RoleId")
    fd.setInputter(new XMLValueInput(URL_RoleListXML_JSP));
   
    fd = type.getFieldDescriptor("GroupId")
    fd.setInputter(new XMLValueInput(URL_GroupListXML_JSP));
  }
View Full Code Here

  public final static String KEY_APPR_LINE_STATUS = "KEY_APPR_LINE_STATUS";
  public final static String KEY_APPR_KEY = "KEY_APPR_KEY";

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("RejectOption");
    fd.setInputter(new RadioInput(
        new String[] { "back to draft", "back to prev", "back to flag", "finish" }, new Integer[] {
            ExternalApprovalLineActivity.LOOPING_OPTION_BACK_TO_DRAFT,
            ExternalApprovalLineActivity.LOOPING_OPTION_BACK_TO_PREV,
            ExternalApprovalLineActivity.LOOPING_OPTION_BACK_TO_FLAG,
            ExternalApprovalLineActivity.LOOPING_OPTION_FINISH }));
View Full Code Here

TOP

Related Classes of org.metaworks.FieldDescriptor

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.