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

way to specify order of CustomShadowVariable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Major Major
    • 6.3.0.CR2
    • 6.2.0.Final, 6.3.0.Beta2
    • optaplanner-core
    • None
    • NEW
    • NEW

      Can we specify order of CustomShadowVariable listerners?

      for example,

      @CustomShadowVariable(
      variableListenerClass = MyVariableListener1.class,
      position=0, // the first listener to call
      sources = ...)

      @CustomShadowVariable(
      variableListenerClass = MyVariableListener2.class,
      after=MyVariableListener1.class, // set the listener2 after the listener1
      sources = ...)

      So we can specify the order of multiple listeners by "position", "after" and "before".

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

              Created:
              Updated:
              Resolved: