public void addSoftConstraintMatch ( RuleContext kcontext , BigDecimal softWeight ) { softScore = softScore . add ( softWeight ) ; registerConstraintMatch ( kcontext , ( ) -> softScore = softScore . subtract ( softWeight ) , ( ) -> HardMediumSoftBigDecimalScore . of ( BigDecimal . ZERO , BigDecimal . ZERO , softWeight ) ) ; }
Add a soft constraint match of specified weighting .