Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-697

Optionally allow Property Reactive drools rules

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 7.0.0.Beta7
    • None
    • optaplanner-core
    • None
    • NEW
    • NEW

    Description

      If users want to use Property Reactive, they add the @PropertyReactive annotation on their model, but DroolsScoreDirector, still does:
      kieSession.update(factHandle, entity);
      that must be replaced with
      kieSession.update(factHandle, entity, variableName);

      Add a test, but keep the examples free from property reactive because most enterprises tend to shoot themselves in the foot with it (a senior programmer enables it, but later, during maintenance changes, a junior programmers forget to adjust @Modifies annotations.

      Attachments

        Issue Links

          Activity

            People

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: