On 23-06-14 09:32, dBijkoo wrote: > When i use the maximumSecondsSpend termination variable in the solverconfig > it doesnt always fully process the methods in the > PlanningVariableListener<Entity>. Most of the time it gives me a solution > with "semi" done shadow variables but not always. > > > However when i change the termination to require a "scoreAttained" it always > gives me a solution with the correct processed shadow variables. > > Any ideas why this might happen? That's impossible. If it does, it's a bug. The VariableListeners should always fire if a variable changed. The terminations are checked between every move scope (and every step scope too of course), and the variable listeners fire in the same move scope as their variable are changed, so again, that's impossible :)
Can you can create a reproducer which uses the latest version (6.1.0.CR1) and attach it to a jira issue? https://issues.jboss.org/browse/PLANNER A reproducer is a zip with something that I can run easily locally offline (preferably with as little as complexity as needed and as little data as needed). > > > > -- > View this message in context: > http://drools.46999.n3.nabble.com/Strange-behaviour-with-maximumSecondsSpend-termination-in-combination-with-PlanningVariableListener-tp4030128.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > rules-users mailing list > rules-users@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/rules-users > _______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users