@Override
    public void afterProblemPropertyChanged(Object problemFactOrEntity) {
        FactHandle factHandle = kieSession.getFactHandle(problemFactOrEntity);
        if (factHandle == null) {
            throw new IllegalArgumentException("The problemFact (" + problemFactOrEntity
                    + ") was never added to this ScoreDirector.\n"
                    + "Maybe that specific instance is not in the "
                    + PlanningSolution.class.getSimpleName() + "'s problem fact members ("
                    + getSolutionDescriptor().getProblemFactMemberAndProblemFactCollectionMemberNames() + ").\n"
                    + "Maybe first translate that external instance to the workingSolution's instance"
                    + " with " + ScoreDirector.class.getSimpleName() + ".lookUpWorkingObject().");
        }
        kieSession.update(factHandle, problemFactOrEntity);
        super.afterProblemPropertyChanged(problemFactOrEntity);
    }
@Override
    public void afterProblemPropertyChanged(Object problemFactOrEntity) {
        FactHandle factHandle = kieSession.getFactHandle(problemFactOrEntity);
        if (factHandle == null) {
            throw new IllegalArgumentException("The problemFact (" + problemFactOrEntity
                    + ") was never added to this ScoreDirector.\n"
                    + "Maybe that specific instance is not in the "
                    + PlanningSolution.class.getSimpleName() + "'s problem fact members ("
                    + getSolutionDescriptor().getProblemFactMemberAndProblemFactCollectionMemberNames() + ").\n"
                    + "Maybe first translate that external instance to the workingSolution's instance"
                    + " with " + ScoreDirector.class.getSimpleName() + ".lookUpWorkingObject().");
        }
        kieSession.update(factHandle, problemFactOrEntity);
        super.afterProblemPropertyChanged(problemFactOrEntity);
    }
@ Override public void afterProblemPropertyChanged ( Object problemFactOrEntity ) { FactHandle factHandle = kieSession . getFactHandle ( problemFactOrEntity ) ; if ( factHandle == null ) { throw new IllegalArgumentException ( "The problemFact (" + problemFactOrEntity + ") was never added to this ScoreDirector.\n" + "Maybe that specific instance is not in the " + PlanningSolution . class . getSimpleName ( ) + "'s problem fact members (" + getSolutionDescriptor ( ) . getProblemFactMemberAndProblemFactCollectionMemberNames ( ) + ").\n" + "Maybe first translate that external instance to the workingSolution's instance" + " with " + ScoreDirector . class . getSimpleName ( ) + ".lookUpWorkingObject()." ) ; } kieSession . update ( factHandle , problemFactOrEntity ) ; super . afterProblemPropertyChanged ( problemFactOrEntity ) ; }
public void beforeProblemPropertyChanged(Object problemFactOrEntity) // Do nothing
public void beforeProblemPropertyChanged ( Object problemFactOrEntity ) // Do nothing