}
List<Element> childElements = element.elements("out");
for (Element child: childElements)
{
Output output = new Output();
output.setName( child.attributeValue("name") );
output.setValue( Expressions.instance().createValueBinding( child.attributeValue("value") ) );
String scopeName = child.attributeValue("scope");
if (scopeName==null)
{
output.setScope(ScopeType.CONVERSATION);
}
else
{
output.setScope( ScopeType.valueOf( scopeName.toUpperCase() ) );
}
rule.getOutputs().add(output);
}
}