Debug.logError("Class " + className + " is not an instance of TransitionCondition", module);
return false;
}
// cast to the interface
TransitionCondition cond = (TransitionCondition) conditionObject;
// trim up the expression if it isn't empty
if (expression != null)
expression = expression.trim();
// get a DispatchContext object to pass over to the eval
DispatchContext dctx = this.getDispatcher().getDispatchContext();
// evaluate the condition
Boolean evaluation = null;
try {
evaluation = cond.evaluateCondition(context, attrs, expression, dctx);
} catch (EvaluationException e) {
throw new WfException("Problems evaluating condition", e);
}
return evaluation.booleanValue();