}
//
String coS = getConditionDrop().getConditionExpression();
if (coS != null && !coS.equals("")) {
// an active condition is defined
ConditionExpression ce = new ConditionExpression(getConditionDrop().getConditionId());
ce.setExpressionString(getConditionDrop().getConditionExpression());
retVal.add(ce);
}
coS = getConditionReturnbox().getConditionExpression();
if (coS != null && !coS.equals("")) {
// an active condition is defined
ConditionExpression ce = new ConditionExpression(getConditionReturnbox().getConditionId());
ce.setExpressionString(getConditionReturnbox().getConditionExpression());
retVal.add(ce);
} else if(coS == null && getConditionDrop().getConditionExpression()!=null && !getConditionDrop().getConditionExpression().equals("")) {
//old courses that had dropbox but no returnbox: use for returnbox the conditionExpression from dropbox
ConditionExpression ce = new ConditionExpression(getConditionReturnbox().getConditionId());
ce.setExpressionString(getConditionDrop().getConditionExpression());
retVal.add(ce);
}
coS = getConditionScoring().getConditionExpression();
if (coS != null && !coS.equals("")) {
// an active condition is defined
ConditionExpression ce = new ConditionExpression(getConditionScoring().getConditionId());
ce.setExpressionString(getConditionScoring().getConditionExpression());
retVal.add(ce);
}
coS = getConditionTask().getConditionExpression();
if (coS != null && !coS.equals("")) {
// an active condition is defined
ConditionExpression ce = new ConditionExpression(getConditionTask().getConditionId());
ce.setExpressionString(getConditionTask().getConditionExpression());
retVal.add(ce);
}
//
return retVal;
}