a = new LabelledAction();
a.boundName = sf.getBoundName();
if ( !sf.isUpdate() ) {
a.action = new ActionSetField( sf.getBoundName() );
} else {
a.action = new ActionUpdateField( sf.getBoundName() );
}
actions.add( a );
} else if ( sf.isUpdate() && !( a.action instanceof ActionUpdateField ) ) {
// lets swap it out for an update as the user has asked for it.
ActionSetField old = (ActionSetField) a.action;
ActionUpdateField update = new ActionUpdateField( sf.getBoundName() );
update.setFieldValues( old.getFieldValues() );
a.action = update;
}
ActionSetField asf = (ActionSetField) a.action;
ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( sf.getFactField(),
sf.getType(),