Package org.metaworks

Examples of org.metaworks.FieldDescriptor


public class ComplexType implements Serializable{
 
  private static final long serialVersionUID = GlobalContext.SERIALIZATION_UID;

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
   
    fd = type.getFieldDescriptor("TypeId");
    XMLValueInput inputter = new XMLValueInput("/processmanager/processDefinitionListXML.jsp?omitVersion=false&objectType=class")/* {
      public void onValueChanged() {
        changeBindingArguments((String) getValue());
      }
    }*/;

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


  public final static int TRIGGERING_BY_APPROVED = 102;
  public final static int TRIGGERING_BY_REJECTED = 103;
  public final static int TRIGGERING_BY_ARBITRARYFINISHED = 104;
   
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("HandlerActivity");
    //fd.setAttribute("hidden", new Boolean(true));
   
    fd.setInputter(new AbstractComponentInputter(){
      private static final long serialVersionUID = GlobalContext.SERIALIZATION_UID;
     
      JLabel valueLabel;
      Activity value;
     
      public Object getValue() {
        // TODO Auto-generated method stub
        return value;
      }

      public void setValue(Object data) {
        // TODO Auto-generated method stub
        valueLabel.setText(((Activity)data).getName().getText());
        value = (Activity)data;
      }

      public Component getNewComponent() {
        // TODO Auto-generated method stub
        return (valueLabel = new JLabel("not set"));
      }
     
    });
   
    fd = type.getFieldDescriptor("TriggeringMethod");
    fd.setInputter(new SelectInput(
        new String[]{
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.byeventbutton", "By Event Button (in web)"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.byapi", "By API invocation"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.whendelegation", "When a participant is delegated"),
            GlobalContext.getLocalizedMessage("eventhandler.triggeringmethods.whencompensation", "When the scope is compensated"),
View Full Code Here

public class LocalMessengerActivity extends DefaultActivity{
 
  private static final long serialVersionUID = GlobalContext.SERIALIZATION_UID;

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

/*    fd.setValidators(new Validator[]{new Validator(){

      public String validate(Object arg0, Instance arg1) {
        String contents = (String)arg0;
        if(contents.length() > 30)
          return "30�� �̸�8�θ� ��۰����մϴ�";
        return null;
      }
     
     
    }});
*/   
    fd = type.getFieldDescriptor("ToRole");
    fd.setDisplayName("Recipient");
  }
View Full Code Here

  }


  public static void metaworksCallback_changeMetadata(Type type) {

    FieldDescriptor fdSequence = type.getFieldDescriptor("Sequence");
    fdSequence.setInputter(new SelectInput(
        new Object[] {"BPM_ACLTABLE", "BPM_PROCDEF", "BPM_PROCDEFVER", "BPM_PROCINST", "BPM_PROCVAR", "BPM_ROLEMAPPING", "BPM_WORKITEM"},
        new Object[] {"ACLTABLE", "PROCDEF", "PROCDEFVER", "PROCINST", "PROCVAR", "ROLEMAPPING", "WORKITEM"})
    );
   
    FieldDescriptor fdType = type.getFieldDescriptor("sequence");
    fdType.setInputter(new TextInput());
  }
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[]{HumanApprovalLineActivity.LOOPINGOPTION_AUTO, HumanApprovalLineActivity.LOOPINGOPTION_REPEATONREJECT, HumanApprovalLineActivity.LOOPINGOPTION_FINISHONREJECT}));
    //fd.setDisplayName("");
   
    type.setName((String)ProcessDesigner.getInstance().getActivityTypeNameMap().get(HumanApprovalLineActivity.class));
  }
View Full Code Here

  public SumTransformer() {
    setName("Sum");
  }

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

  public ReplaceTransformer() {
    setName("Replace");
  }

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = type.getFieldDescriptor("OldString");
    fd.setDisplayName("Old String");
   
    fd = type.getFieldDescriptor("NewString");
    fd.setDisplayName("New String");
 
View Full Code Here

 
  private static final long serialVersionUID = org.uengine.kernel.GlobalContext.SERIALIZATION_UID;
 
  public static void metaworksCallback_changeMetadata(Type type){
    ParameterContext.metaworksCallback_changeMetadata(type);
    FieldDescriptor fd;
  }
View Full Code Here

    setName("back");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
 
    FieldDescriptor fd = type.getFieldDescriptor("TargetSource");
    fd.setInputter(new RadioInput(
        new String[]{
            "TargetActivityPV",
            "TargetActivity",
            "TargetActivityPV or targetActivity",
            "Flag"
View Full Code Here

    }
    this.listFieldType = listFieldType;
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;

    fd = type.getFieldDescriptor("ListFieldType");
   
    //ArrayList fieldNames = new ArrayList();
    ArrayList fieldValues = new ArrayList();
    try {
      ProcessInstanceDAO piDAO;
      WorkListDAO wlDAO;
 
      wlDAO = (org.uengine.persistence.dao.WorkListDAO)GenericDAO.createDAOImpl(org.uengine.persistence.dao.WorkListDAO.class);
     
      for(Iterator i = wlDAO.getImplementationObject().getPropertyTypes().keySet().iterator(); i.hasNext();){
        String fieldName = (String)i.next();
        //fieldNames.add(fieldName);
        WorkListTableListFieldType listFieldType = new WorkListTableListFieldType();
        listFieldType.setFieldName(fieldName);
        fieldValues.add(listFieldType);
      }
     
      piDAO = (ProcessInstanceDAO)GenericDAO.createDAOImpl(ProcessInstanceDAO.class);
     
      for(Iterator i = piDAO.getImplementationObject().getPropertyTypes().keySet().iterator(); i.hasNext();){
        String fieldName = (String)i.next();
        //fieldNames.add(fieldName);
        InstanceTableListFieldType listFieldType = new InstanceTableListFieldType();
        listFieldType.setFieldName(fieldName);
        fieldValues.add(listFieldType);
      }
     
      ProcessDesigner pdr = ProcessDesigner.getInstance();
      ProcessDefinition pd = (ProcessDefinition)pdr.getProcessDefinitionDesigner().getActivity();
      ProcessVariable[] variables = pd.getProcessVariables();
      if(variables != null){
        for(int i=0; i<variables.length; i++){
          if(variables[i].isDatabaseSynchronized()){
            VariablePointingListFieldType listFieldType = new VariablePointingListFieldType();
            listFieldType.setVariable(variables[i]);
            fieldValues.add(listFieldType);
          }
        }
      }
      Object [] listFieldTypesInArray = new Object[fieldValues.size()];
      fieldValues.toArray(listFieldTypesInArray);
      fd.setInputter(new SelectInput(listFieldTypesInArray));
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
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.