//Setup RHS
model.rhs = new IAction[2];
//Both fields are Template Keys
ActionInsertFact aif0 = new ActionInsertFact( "AIF0" );
ActionFieldValue aif0f0 = new ActionFieldValue( "AIF0F0",
"AIF0F0Value",
SuggestionCompletionEngine.TYPE_STRING );
aif0f0.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE );
aif0.addFieldValue( aif0f0 );
ActionFieldValue aif0f1 = new ActionFieldValue( "AIF0F1",
"AIF0F1Value",
SuggestionCompletionEngine.TYPE_STRING );
aif0f1.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE );
aif0.addFieldValue( aif0f1 );
model.rhs[0] = aif0;
//Dependent enumerations
ActionInsertFact aif1 = new ActionInsertFact( "Fact" );
ActionFieldValue aif1f0 = new ActionFieldValue( "field1",
"AIF1F0Value",
SuggestionCompletionEngine.TYPE_STRING );
aif1f0.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE );
aif1.addFieldValue( aif1f0 );
ActionFieldValue aif1f1 = new ActionFieldValue( "field2",
"AIF1F1Value",
SuggestionCompletionEngine.TYPE_STRING );
aif1f1.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE );
aif1.addFieldValue( aif1f1 );
ActionFieldValue aif1f2 = new ActionFieldValue( "field3",
"AIF1F2Value",
SuggestionCompletionEngine.TYPE_STRING );
aif1f2.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE );
aif1.addFieldValue( aif1f2 );
model.rhs[1] = aif1;
//---Setup data---
data = new DynamicData();