@Override
public void makeResult( final GuidedDecisionTable52 model ) {
//Copy actions to decision table model
int fi = 1;
for ( Map.Entry<ActionInsertFactFieldsPattern, List<ActionInsertFactCol52>> ps : patternToActionsMap.entrySet() ) {
final ActionInsertFactFieldsPattern p = ps.getKey();
if ( !getValidator().isPatternValid( p ) ) {
String binding = NEW_FACT_PREFIX + ( fi++ );
p.setBoundName( binding );
while ( !getValidator().isPatternBindingUnique( p ) ) {
binding = NEW_FACT_PREFIX + ( fi++ );
p.setBoundName( binding );
}
}
final String factType = p.getFactType();
final String boundName = p.getBoundName();
final boolean isLogicalInsert = p.isInsertedLogically();
for ( ActionInsertFactCol52 aif : ps.getValue() ) {
aif.setFactType( factType );
aif.setBoundName( boundName );
aif.setInsertLogical( isLogicalInsert );