protected void setupExpression(String formula, SimpleFormula algo) throws Exception {
Expression expression = expressionManager.parse(formula);
algo.setFormula(expression);
List vars = expressionManager.parseVariables(formula);
for (Iterator iter = vars.iterator(); iter.hasNext();) {
VariableFunction var = (VariableFunction) iter.next();
algo.addTrigger(var.getVariableName());
}
}