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