protected EventableCondition getEventableCondition() {
if ((getWithXpathExpression() == null || getWithXpathExpression().equals(""))
&& getConditions().size() == 0 && getInputFieldIds().size() == 0) {
return null;
}
EventableCondition eventableCondition = new EventableCondition(getId());
if (getWithXpathExpression() != null && !getWithXpathExpression().equals("")) {
eventableCondition.setInXPath(getWithXpathExpression());
}
if (getConditions().size() > 0) {
eventableCondition.setConditions(getConditions());
}
if (getInputFieldIds().size() > 0) {
eventableCondition.setLinkedInputFields(getInputFieldIds());
}
return eventableCondition;
}