Package org.metaworks

Examples of org.metaworks.FieldDescriptor


  }

  public void initialize(final ProcessDesigner pd, Activity activity) {
    super.initialize(pd, activity);

    FieldDescriptor fd;
    fd = getFieldDescriptor("VariableBindings");
    bindingVariablesInput = fd.getInputter();

    fd = getFieldDescriptor("DefinitionId");

    XMLValueInput inputter = new XMLValueInput("/processmanager/processDefinitionListXML.jsp?omitVersion=false&objectType=rule") {
      public void onValueChanged() {
        changeBindingArguments((String) getValue());
      }
    };

    fd.setInputter(inputter);
    definitionIdInput = inputter;
   
    setFieldDisplayNames(DRoolsActivity.class);
  }
View Full Code Here


*
*/
public class HowToBinding {

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

    type.setName("Create and add variables corresponding child process definition?");
   
    fd = type.getFieldDescriptor("VariableCreationOption");
    fd.setInputter(new SelectInput(
        new Object[]{
            "Don't create variables",
            "Create if not exists",
            "Create with prefix"
        },
View Full Code Here

  }
 
  public void initialize(ProcessDesigner pd, Activity activity) {
    super.initialize(pd, activity);
   
    FieldDescriptor escalationLevelFd = getFieldDescriptor("EscalationLevel");
   
    escalationLevelFd.setAttribute("dependancy", new EnablingDependancy("Escalate"){

      public boolean enableIf(Object dependencyFieldValue) {
        Boolean dependencyFieldValueBoolean = (Boolean)dependencyFieldValue;
        if(dependencyFieldValue!=null && dependencyFieldValueBoolean.booleanValue())
          return false;
View Full Code Here

//  }
 
  public void initialize(final ProcessDesigner pd, Activity activity){
    super.initialize(pd, activity);
     
    FieldDescriptor fd = getFieldDescriptor("MappingContext");
   
    org_uengine_contexts_MappingContextInput formMappingContextInput = new org_uengine_contexts_MappingContextInput();
    formMappingContextInput.getNewComponent();
    fd.setInputter(formMappingContextInput);
   
    removeFieldDescriptor("Parameters");
    removeFieldDescriptor("Tool");
    removeFieldDescriptor("Instruction");
   
View Full Code Here

  }
 
  public void initialize(final ProcessDesigner pd, Activity activity){
    super.initialize(pd, activity);
     
    FieldDescriptor fd = getFieldDescriptor("Contents");
    fd.setInputter(new TextAreaInput());   

    setFieldDisplayNames(FileGenerateActivity.class);
  }
View Full Code Here

  public final static int STATUS_CANCELLED  = 2;
  public final static int STATUS_FAULT    = 3;
  public final static int STATUS_COMPLETED  = 4;

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd = null;
   
    fd = type.getFieldDescriptor("Status");
    fd.setDisplayName("Terminate Status");
    fd.setInputter(
      new RadioInput(
        new String[] {
            "Stopped",
            "Cancelled",
            "Failed",
View Full Code Here

public class ConfirmActivity extends FormActivity {
 
  public static void metaworksCallback_changeMetadata(Type type){
   
    FieldDescriptor fd = type.getFieldDescriptor("AutoComplete");
    fd.setInputter(new RadioInput(
        new String[]{
            "Yes",
            "No"
        }, new Object[]{
            true,
            false           
        }
      )
    );
    FieldDescriptor fd2 = type.getFieldDescriptor("ViewMode");
    fd2.setInputter(new RadioInput(
        new String[]{
            "Yes",
            "No"
        }, new Object[]{
            true,
View Full Code Here

  public JMSQueueActivity(){
    setName("JMS");
  }
 
  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
    //type.setName("JMS Queueing");
    type.setName((String)ProcessDesigner.getInstance().getActivityTypeNameMap().get(JMSQueueActivity.class));
   
    fd = type.getFieldDescriptor("AcknowledgeType")
    fd.setInputter(
      new RadioInput(
        new String[]{"Auto(Recommended)", "Client acknowledge", "Dups Ok"},
        new Integer[]{
          new Integer(Session.AUTO_ACKNOWLEDGE),
          new Integer(Session.CLIENT_ACKNOWLEDGE),
          new Integer(Session.DUPS_OK_ACKNOWLEDGE),
        }
      )
    );

    fd = type.getFieldDescriptor("JmsProvider")
    fd.setInputter(
      new SelectInput(
        new Object[]{"JBossMQ", "SonicMQ", "ActiveMQ"}
      )
    );
  }
View Full Code Here

public class TelnetConfigCommand implements java.io.Serializable {

  private static final long serialVersionUID = org.uengine.kernel.GlobalContext.SERIALIZATION_UID;

  public static void metaworksCallback_changeMetadata(Type type){
    FieldDescriptor fd;
   
    fd = type.getFieldDescriptor("ServerType");
    fd.setInputter(
        new RadioInput(
            new String[] { "option1", "option2", "option3" },
            new Object[] { new String("option1"), new String("option2"), new String("option3") }
        )
    )
View Full Code Here

import org.metaworks.validator.Validator;

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

    type.removeFieldDescriptor("Savable");
    type.removeFieldDescriptor("Loadable");
    type.removeFieldDescriptor("Updatable");
    type.removeFieldDescriptor("ForeignKey");
    type.removeFieldDescriptor("Type");

    fd = type.getFieldDescriptor("Inputter");
    fd.setValidators(new Validator[]{
      new Validator(){

        public String validate(Object data, Instance instance) {
          Inputter inputter = (Inputter)data;
          Class type = (Class)instance.getFieldValue("Type");
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.