SingleFieldConstraint fp1_sfp1 = new SingleFieldConstraint();
fp1_sfp1.setFactType( "ParentType" );
fp1_sfp1.setFieldName( "this" );
fp1_sfp1.setFieldType( DataType.TYPE_THIS );
fp1_sfp1.setConstraintValueType( BaseSingleFieldConstraint.TYPE_UNDEFINED );
fp1.addConstraint( fp1_sfp1 );
SingleFieldConstraint fp1_sfp2 = new SingleFieldConstraint();
fp1_sfp2.setFactType( "ParentType" );
fp1_sfp2.setFieldName( "parentChildField" );
fp1_sfp2.setFieldType( "ChildType" );