p4.setName( "StringResult" );
pwd.addResult( p4 );
m.addRhsItem( awi );
ActionSetField asf = new ActionSetField();
asf.variable = "$r";
ActionWorkItemFieldValue fv1 = new ActionWorkItemFieldValue( "ResultsBooleanResult",
SuggestionCompletionEngine.TYPE_BOOLEAN,
"WorkItem",
"BooleanResult",
Boolean.class.getName() );
asf.addFieldValue( fv1 );
ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult",
SuggestionCompletionEngine.TYPE_NUMERIC_FLOAT,
"WorkItem",
"FloatResult",
Float.class.getName() );
asf.addFieldValue( fv2 );
ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult",
SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER,
"WorkItem",
"IntegerResult",
Integer.class.getName() );
asf.addFieldValue( fv3 );
ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult",
SuggestionCompletionEngine.TYPE_STRING,
"WorkItem",
"StringResult",
String.class.getName() );
asf.addFieldValue( fv4 );
m.addRhsItem( asf );
String result = BRDRLPersistence.getInstance().marshal( m );