1 23 package org.infoglue.cms.applications.workflowtool.condition; 24 25 import com.opensymphony.workflow.WorkflowException; 26 27 30 public class PropertysetContains extends InfoglueCondition 31 { 32 35 private static final String NAME_ARGUMENT = "name"; 36 37 40 private static final String VALUE_ARGUMENT = "value"; 41 42 45 public PropertysetContains() 46 { 47 super(); 48 } 49 50 56 protected boolean passesCondition() throws WorkflowException 57 { 58 final String name = getArgument(NAME_ARGUMENT); 59 if(propertySetContains(name)) 60 { 61 final String value = getPropertySet().getAsString(name); 62 return (value != null) && value.equals(getArgument(VALUE_ARGUMENT)); 63 } 64 return false; 65 } 66 } 67 | Popular Tags |