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

Workbench: There can only be 1 score type enum

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 7.0.0.Beta3
    • None
    • None
    • None
    • NEW
    • NEW

      ScoreDefinitionType is the real score type enum:
      https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-core/src/main/java/org/optaplanner/core/config/score/definition/ScoreDefinitionType.java
      I can add methods on that one, like
      boolean isBendable()
      boolean isOkToUseInWorkbench()
      etc

      these are the copy pastes of that:

      There should be only 1 if possible.
      Because this is often used in a combobox, it needs to be i18ned so HARD_SOFT_SCORE becomes "Hard and soft score" or "Dur et gentille ..."

      To make it @Portable without changing optaplanner-core, we can make a class @Portable by including a Errai.properties file in the JAR e.g. https://github.com/droolsjbpm/drools/blob/master/drools-workbench-models/drools-workbench-models-datamodel-api/src/main/resources/ErraiApp.properties (thanks to manstis for info)

              mcimbora_jira Matej Čimbora (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: