Package org.metaworks

Examples of org.metaworks.EnablingDependancy


  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


      )
    );

   
    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

TOP

Related Classes of org.metaworks.EnablingDependancy

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.