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

Make sourceVariable name optional on all shadow variable annotations and add sourceEntityClass attribute

    XMLWordPrintable

Details

    • Story
    • Resolution: Unresolved
    • Major
    • None
    • None
    • optaplanner-core
    • None
    • NEW
    • NEW

    Description

      A) @Next(sourceEntityClass=Vehicle.class, sourceVariableName="visitList")

      B) @Next(sourceEntityClass=Vehicle.class)
      // there is only 1 ListVariable in the Vehicle class

      C) @Next(sourceVariableName="visitList")
      // there is only 1 ListVariable called "visitList" in the whole meta-model

      D) @Next()
      // there is only 1 ListVariable in the whole meta-model

      // Winner
      X) What do we allow? A, B, C, D
      What do we promote (= docs, quickstarts)? B

      Add TRACE logging message to any magic decision that happens automatically (when an optional configuration is missing).

      Attachments

        Activity

          People

            jlocker Jiří Locker
            jlocker Jiří Locker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: