Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-304

Indictment.getScoreTotal() corrupts when calculated incrementally

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0, 7.0.0.GA
    • 7.0.0.GA
    • OptaPlanner
    • None
    • CR2
    • Hide

      Start the NurseRostering example. Import Sprint01 for example. Start the solve, and then stop it anytime after construction. Hover over an assignment and observe the IndictmentTotal, and the individual (soft) indictments. Select the assignment and change it to another employee (preferably one that does not create a hard constraint). Hover over the assignment, and observe that the IndictmentTotal is now the sum of the original position's indictments and the new positions indictments. When you change the assignment back to its original position, the indictment total continues to accumulate.

      Show
      Start the NurseRostering example. Import Sprint01 for example. Start the solve, and then stop it anytime after construction. Hover over an assignment and observe the IndictmentTotal, and the individual (soft) indictments. Select the assignment and change it to another employee (preferably one that does not create a hard constraint). Hover over the assignment, and observe that the IndictmentTotal is now the sum of the original position's indictments and the new positions indictments. When you change the assignment back to its original position, the indictment total continues to accumulate.

    Description

      The Indictment class' retrievable ScoreTotal is corrupted when assignments are moved among entities (if the Indictment is not destroyed and rebuilt; specifically when manually moved). If a constraint match is added and then removed, the removeConstraintMatch method does not subtract from score total. This effect is reproducible and observable in the NurseRostering user interface.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: