RuleModel m = new RuleModel();
DSLSentence sen = new DSLSentence();
sen.setDefinition( "I CAN HAS DSL" );
m.addRhsItem( sen );
ActionInsertFact ins = new ActionInsertFact( "Shizzle" );
ActionFieldValue val = new ActionFieldValue( "goo",
"42",
"Numeric" );
ins.setFieldValues( new ActionFieldValue[ 1 ] );
ins.getFieldValues()[ 0 ] = val;
m.addRhsItem( ins );
ActionInsertLogicalFact insL = new ActionInsertLogicalFact( "Shizzle" );
ActionFieldValue valL = new ActionFieldValue( "goo",
"42",
"Numeric" );
insL.setFieldValues( new ActionFieldValue[ 1 ] );
insL.getFieldValues()[ 0 ] = valL;
m.addRhsItem( insL );