Package org.metaworks

Examples of org.metaworks.FieldDescriptor


  public NumberFormatTransformer() {
    setName("NumberFormat");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setDisplayName("Input Number Type");
    fd.setInputter(new SelectInput(
        new Object[]{
          "Long",
          "Double"
        },
        new Object[]{ 'L', 'D' }
      ));

    fd = type.getFieldDescriptor("ToType");
    fd.setDisplayName("Output Format");
    fd.setInputter(new SelectInput(
        new Object[]{
            "Integer",
            "Currency",
            "Number",
            "Percent"
View Full Code Here


                    public void logic(Object target) {
                      OpenedForm openedForm = (OpenedForm) target;
                     
                      File file = new File(openedForm.localFilePath);
                      if(openedForm.lastModified != file.lastModified()){
                        deployOrNot.addFieldDescriptor(new FieldDescriptor(openedForm.formName, Boolean.class, null, null));
                        deployInstance.setFieldValue(openedForm.formName, true);
                        openedForm.lastModified = file.lastModified();
                      }
                    }
                   
View Full Code Here

  public MaxTransformer(){
    setName("Max");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Double",
        "Long",
        "String"
      },
View Full Code Here

  private static final String HANDLER_CLASS_NAME = "_value_handler_class";
  private static final String HANDLER_STRING_NAME = "_value_handler_string";
  public final static String FILE_SYSTEM_DIR = GlobalContext.getPropertyString("filesystem.path", ProcessDefinitionFactory.DEFINITION_ROOT);

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
   
    type.removeFieldDescriptor("ValueMap");
    type.removeFieldDescriptor("FilePath");
   
    fd = type.getFieldDescriptor("FormDefId");
    XMLValueInput inputter = new XMLValueInput("/processmanager/processDefinitionListXML.jsp?omitVersion=false&objectType=form")/* {
      public void onValueChanged() {
        changeBindingArguments((String) getValue());
      }
    }*/;
   
    inputter.setEditable(true);
   
    fd.setValidators(new Validator[]{
      new Validator(){
     
        public String validate(Object data, Instance instance){
          if(org.uengine.util.UEngineUtil.isNotEmpty((String)data)) return null;
          return ("Should be set");
        }
       
      }
    });

    fd.setInputter(inputter);
  }
View Full Code Here

  public MinTransformer(){
    setName("Min");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("InputType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Double",
        "Long",
        "String"
      },
View Full Code Here

import org.uengine.processdesigner.mapper.Transformer;

public class DirectValueTransformer extends Transformer{

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

    final Inputter dtInput = fd.getInputter();
   
    fd = type.getFieldDescriptor("Value");
    final ObjectInput valueInput = new ObjectInput();
    fd.setInputter(valueInput);
   
    dtInput.addActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        try{
          Class type = (Class)dtInput.getValue();
View Full Code Here

    setName("To Number");
  }

  public static void metaworksCallback_changeMetadata(Type type){
   
    FieldDescriptor fd = type.getFieldDescriptor("ToType");
    fd.setInputter(new SelectInput(
      new Object[]{
        "Integer",
        "Long",
        "Double"
      },
View Full Code Here

  //2009.08.21 added by sh.kim
  //schedule option added.
  public static void metaworksCallback_changeMetadata(Type type){
    type.setName("Wait Activity");
   
    FieldDescriptor fd = null;
     
    fd = type.getFieldDescriptor("Message");
    type.removeFieldDescriptor(fd);
   
    fd = type.getFieldDescriptor("Parameters");
    type.removeFieldDescriptor(fd);
   
    fd = type.getFieldDescriptor("MessageDefinition");
    type.removeFieldDescriptor(fd);
   
    fd = type.getFieldDescriptor("FromRole");
    type.removeFieldDescriptor(fd);
   
    fd = type.getFieldDescriptor("HowWait");
    fd.setInputter(new RadioInput(
        new String[]{
            "while for given 'millisecond'",
            "for the next occurrance set by 'Cron Expression'",
            "until given 'WaitUntil'",
        }, new Object[]{
            WAITING_TYPE_WHILE,
            WAITING_TYPE_PERIOD,
            WAITING_TYPE_UNTIL,
        }
      )
    );

   
    fd = type.getFieldDescriptor("ScheCronExp");
    fd.setAttribute("dependancy", new EnablingDependancy("HowWait"){

      public boolean enableIf(Object dependencyFieldValue) {
        return WAITING_TYPE_PERIOD.equals(dependencyFieldValue);
      }
     
    });
   
    fd = type.getFieldDescriptor("WaitUntil");
    fd.setAttribute("dependancy", new EnablingDependancy("HowWait"){

      public boolean enableIf(Object dependencyFieldValue) {
        return WAITING_TYPE_UNTIL.equals(dependencyFieldValue);
      }
     
    });

    fd = type.getFieldDescriptor("MilliSecond");
    fd.setAttribute("dependancy", new EnablingDependancy("HowWait"){

      public boolean enableIf(Object dependencyFieldValue) {
        return WAITING_TYPE_WHILE.equals(dependencyFieldValue);
      }
     
View Full Code Here

import org.uengine.kernel.RevisionInfo;

public class SaveDialogInfo{
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;

    type.setName("Deploy process design to uEngine server");
   
    fd = type.getFieldDescriptor("Name");
    fd.setValidators(new Validator[]{new NotNullValid()});

    fd = type.getFieldDescriptor("Version");
    fd.setValidators(new Validator[]{new NotNullValid()});
   
    fd = type.getFieldDescriptor("Alias");
    fd.setValidators(new Validator[]{new NotNullValid()});
   
    type.setFieldOrder(new String[]{"Name", "Alias", "Version", "Author"});
  }
View Full Code Here

 
  private static final long serialVersionUID = GlobalContext.SERIALIZATION_UID;
  public final static String FILE_SYSTEM_DIR = GlobalContext.getPropertyString("filesystem.path", ProcessDefinitionFactory.DEFINITION_ROOT);

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
   
    type.removeFieldDescriptor("FilePath");
   
    fd = type.getFieldDescriptor("DocumentDefId");
    XMLValueInput inputter = new XMLValueInput("/processmanager/processDefinitionListXML.jsp?omitVersion=false&objectType=excel");   
    fd.setValidators(new Validator[]{
      new Validator(){
     
        public String validate(Object data, Instance instance){
          if(org.uengine.util.UEngineUtil.isNotEmpty((String)data)) return null;
          return ("Should be set");
        }
       
      }
    });

    fd.setInputter(inputter);
  }
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.