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

Workbench: Solver config editor needs validate button that builds the Solver.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.4.0.CR1
    • None
    • optaplanner-wb
    • None
    • NEW
    • NEW

      That button should basically do this:

              SolverFactory<TestdataSolution> solverFactory = SolverFactory.createFromKieContainerXmlResource(
                      kieContainer, "my/domain/solverConfig.solver");
              Solver<TestdataSolution> solver = solverFactory.buildSolver();
      

      If any exception is thrown (usually IllegalArgumentException or IllegalStateException), then it should be shown to the user (later on we'll want to make the validation more helpful).

            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

              Created:
              Updated:
              Resolved: