@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface ProblemFactCollectionProperty
PlanningSolution class is a Collection of problem facts.
A problem fact must not change during solving (except through a ProblemFactChange event).
The constraints in a ConstraintProvider rely on problem facts for ConstraintFactory.from(Class).
Alternatively, scoreDRL relies on problem facts too.
Do not annotate planning entities as problem facts:
they are automatically available as facts for ConstraintFactory.from(Class) or DRL.
ProblemFactPropertyCopyright © 2006–2021 JBoss by Red Hat. All rights reserved.