View Javadoc

1   /* ------------------------------------
2    * © Kaamelot - 2007
3    * ------------------------------------*/
4   
5   package com.atlassian.jira.workflow.condition;
6   
7   import java.util.Map;
8   
9   import com.opensymphony.module.propertyset.PropertySet;
10  import com.opensymphony.workflow.Condition;
11  
12  /**
13   * @author Kaamelot - 2006
14   * <b>Description :</b>
15   * Allows a the Workflow Transition only if Estimate is already evaluated. 
16   */
17  
18  public class AllowEstimateNotNull extends AllowEstimateToNull implements Condition {
19  
20     /**
21      * @return True if condition is valid (Estimate is evaluated - NOT NULL and greater than Zero)
22      */
23     public boolean passesCondition(Map transientVars, Map args, PropertySet ps) {
24        return !super.passesCondition(transientVars, args, ps);
25     }
26  }