m.addRhsItem( awi );
ActionInsertFact aif = new ActionInsertFact();
aif.setBoundName( "$r" );
aif.factType = "Results";
ActionWorkItemFieldValue fv1 = new ActionWorkItemFieldValue( "ResultsBooleanResult",
SuggestionCompletionEngine.TYPE_BOOLEAN,
"WorkItem",
"BooleanResult",
Boolean.class.getName() );
aif.addFieldValue( fv1 );
ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult",
SuggestionCompletionEngine.TYPE_NUMERIC_FLOAT,
"WorkItem",
"FloatResult",
Float.class.getName() );
aif.addFieldValue( fv2 );
ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult",
SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER,
"WorkItem",
"IntegerResult",
Integer.class.getName() );
aif.addFieldValue( fv3 );
ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult",
SuggestionCompletionEngine.TYPE_STRING,
"WorkItem",
"StringResult",
String.class.getName() );
aif.addFieldValue( fv4 );