org.optaplanner.core.api.domain.solution.drools

## Annotation Type ProblemFactProperty

-     @Target(value={METHOD,FIELD})
       @Retention(value=RUNTIME)
      public @interface ProblemFactProperty

  Specifies that a property (or a field) on a `PlanningSolution` class is a problem fact. A problem fact must not change during solving (except through `ProblemFactChange` event).

  The problem fact will be added as a fact in the `KieSession` of the `DroolsScoreDirector`, so the score rules can use it.

  Do not annotate `planning entities` or a `planning paramerization` as problem facts: they are automatically inserted into the `KieSession`.

  See Also:
    `ProblemFactCollectionProperty`

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.