AttributeCol52 attr = new AttributeCol52();
attr.setAttribute( "salience" );
attr.setDefaultValue( "66" );
dt.getAttributeCols().add( attr );
Pattern52 p1 = new Pattern52();
p1.setBoundName( "f1" );
p1.setFactType( "Driver" );
ConditionCol52 con = new ConditionCol52();
con.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL );
con.setFactField( "age" );
con.setHeader( "Driver f1 age" );
con.setOperator( "==" );
p1.getChildColumns().add( con );
ConditionCol52 con2 = new ConditionCol52();
con2.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL );
con2.setFactField( "name" );
con2.setHeader( "Driver f1 name" );
con2.setOperator( "==" );
p1.getChildColumns().add( con2 );
ConditionCol52 con3 = new ConditionCol52();
con3.setConstraintValueType( BaseSingleFieldConstraint.TYPE_RET_VALUE );
con3.setFactField( "rating" );
con3.setHeader( "Driver rating" );
con3.setOperator( "==" );
p1.getChildColumns().add( con3 );
dt.getConditions().add( p1 );
Pattern52 p2 = new Pattern52();
p2.setBoundName( "f2" );
p2.setFactType( "Driver" );
ConditionCol52 con4 = new ConditionCol52();
con4.setConstraintValueType( BaseSingleFieldConstraint.TYPE_PREDICATE );
con4.setHeader( "Driver 2 pimp" );
con4.setFactField( "this.hasSomething($param)" );
p2.getChildColumns().add( con4 );
dt.getConditions().add( p2 );
ActionInsertFactCol52 ins = new ActionInsertFactCol52();
ins.setBoundName( "ins" );