con1.setConstraintValueType( SingleFieldConstraint.TYPE_LITERAL );
p.addConstraint( con1 );
SingleFieldConstraintEBLeftSide con2 = new SingleFieldConstraintEBLeftSide();
con2.getExpressionLeftSide().appendPart( new ExpressionUnboundFact( p ) );
con2.getExpressionLeftSide().appendPart( new ExpressionMethod( "intValue",
"int",
DataType.TYPE_NUMERIC_INTEGER ) );
con2.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL );
con2.setOperator( "==" );
con2.setValue( "0" );