fluid-api/src/main/java/com/fluidbpm/program/api/vo/form/Form.java
@XmlTransient
	public void setFieldValue(String fieldNameParam, Object fieldValueParam) {
		if(fieldNameParam == null || fieldNameParam.trim().length() == 0)
		{
			return;
		}

		if(this.getFormFields() == null || this.getFormFields().isEmpty())
		{
			this.setFormFields(new ArrayList());
		}

		String fieldNameParamLower = fieldNameParam.toLowerCase();

		for (Iterator<Field> fieldIter = this.getFormFields().iterator();
			 fieldIter.hasNext();) {

			Field field = fieldIter.next();
			if(field.getFieldName() == null || field.getFieldName().trim().length() == 0)
			{
				continue;
			}

			String fieldNameLower = field.getFieldName().toLowerCase();
			if(fieldNameParamLower.equals(fieldNameLower))
			{
				field.setFieldValue(fieldValueParam);
				return;
			}
		}

		//When the Field is not added previously...
		this.getFormFields().add(new Field(fieldNameParam,fieldValueParam));
	}
@XmlTransient
	public void setFieldValue(String fieldNameParam, Object fieldValueParam) {
		if(fieldNameParam == null || fieldNameParam.trim().length() == 0)
		{
			return;
		}

		if(this.getFormFields() == null || this.getFormFields().isEmpty())
		{
			this.setFormFields(new ArrayList());
		}

		String fieldNameParamLower = fieldNameParam.toLowerCase();

		for (Iterator<Field> fieldIter = this.getFormFields().iterator();
			 fieldIter.hasNext();) {

			Field field = fieldIter.next();
			if(field.getFieldName() == null || field.getFieldName().trim().length() == 0)
			{
				continue;
			}

			String fieldNameLower = field.getFieldName().toLowerCase();
			if(fieldNameParamLower.equals(fieldNameLower))
			{
				field.setFieldValue(fieldValueParam);
				return;
			}
		}

		//When the Field is not added previously...
		this.getFormFields().add(new Field(fieldNameParam,fieldValueParam));
	}
@ XmlTransient public void setFieldValue ( String fieldNameParam , Object fieldValueParam ) { if ( fieldNameParam == null || fieldNameParam . trim ( ) . length ( ) == 0 ) { return ; } if ( this . getFormFields ( ) == null || this . getFormFields ( ) . isEmpty ( ) ) { this . setFormFields ( new ArrayList ( ) ) ; } String fieldNameParamLower = fieldNameParam . toLowerCase ( ) ; for ( Iterator < Field > fieldIter = this . getFormFields ( ) . iterator ( ) ; fieldIter . hasNext ( ) ; ) { Field field = fieldIter . next ( ) ; if ( field . getFieldName ( ) == null || field . getFieldName ( ) . trim ( ) . length ( ) == 0 ) { continue ; } String fieldNameLower = field . getFieldName ( ) . toLowerCase ( ) ; if ( fieldNameParamLower . equals ( fieldNameLower ) ) { field . setFieldValue ( fieldValueParam ) ; return ; } } //When the Field is not added previously... this . getFormFields ( ) . add ( new Field ( fieldNameParam , fieldValueParam ) ) ; }
<p>
Sets the value of the {@code fieldNameParam} requested.
<p>
If there is an existing value, the value will be override with
the value of {@code fieldValueParam}.

<p>
The {@code fieldNameParam} <b>is not</b> case sensitive.

<p>
The value won't be set if;
<ul>
<li>{@code fieldNameParam} is {@code null} or empty.</li>
<li>{@code getFormFields()} is {@code null} or empty.</li>
<li>Field is not found by {@code fieldNameParam}.</li>
</ul>

@param fieldNameParam The name of the Form Field as in Fluid.
@param fieldValueParam The value of the {@code Field}.

@see Field.Type
<p > Sets the value of the { @code fieldNameParam } requested . <p > If there is an existing value the value will be override with the value of { @code fieldValueParam } .