[rules-users] [Optaplanner] No-arg constructor for BendableScoreDefinition

jonathan.labin jonathan.labin at gmail.com
Thu Apr 25 10:18:18 EDT 2013


Is there an example that uses BendableScore?

I'm trying to convert my app from using HardSoftScore to BendableScore and
I've run into my first issue:


Changing from:
@XStreamConverter(value = XStreamScoreConverter.class, types =
{HardSoftLongScoreDefinition.class})

to
@XStreamConverter(value = XStreamScoreConverter.class, types =
{BendableScoreDefinition.class})

throws:
Caused by: java.lang.IllegalArgumentException: The scoreDefinitionClass
(class
org.optaplanner.core.impl.score.buildin.bendable.BendableScoreDefinition)
does not have a public no-arg constructor.

The answer to this issue would be helpful but I'll probably hit other bumps
along the way.  Does anyone have an example that uses BendableScore?

Thanks,

Jon



--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-No-arg-constructor-for-BendableScoreDefinition-tp4023523.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list