[rules-users] rule-flow group in rules

2014-06-06 Thread ganeshneelekani
Hi Team, Please follow below code-- In the below code I have 2 ruleflow-group, Is this valid? Can a rule have more than 1 rule-flow group When I executed this it just took lat rule-flow group hellotest. rule firstrule dialect java no-loop ruleflow-group testrule ruleflow-group

[rules-users] NullPointerException at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion

2014-06-06 Thread tia
Hello, I'm trying to add a new rule on the fly like here: https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L158 Here is the method to add a rule, once the KieSession is created and configured:

Re: [rules-users] using 2 rule-flow group in rules.

2014-06-06 Thread ganeshneelekani
Hi Team, I have done couple of example to check this issue, Any how it does not produce any compile-time or run-time error to make use of 2 rule-flow group in a single rule, But it takes the last rule-flow group and executes. Follow below url to know more.

Re: [rules-users] NullPointerException at org.drools.compiler.kie.builder.impl.KieContainerImpl.updateToVersion

2014-06-06 Thread Mark Proctor
We have a number of add/remove rule tests, could you reproduce your problem, using the same classes and format as outlined in this test class. Ideally adding your reproducer as a single failing test method:

[rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread dBijkoo
when I use this code: subChainChangeMoveSelector subChainSelector entitySelector entityClassmodel.ScheduleBlockPeriod/entityClass /entitySelector

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread dBijkoo
After searching through the library I found the problem. It should be subChainSwapMoveSelector * planningEntityClassmodel.ScheduleBlockPeriod/planningEntityClass* subChainSelector valueSelectornextScheduleBlockPeriod/valueSelector

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
On 06-06-14 14:13, dBijkoo wrote: when I use this code: subChainChangeMoveSelector subChainSelector entitySelector subChainSelector doesn't supports an entitySelector element, only a valueSelector element. See

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
On 06-06-14 16:09, dBijkoo wrote: This should be changed here: http://docs.jboss.org/drools/release/6.0.1.Final/optaplanner-docs/html_single/index.html#subChainChangeMoveSelector and at the subChainSwapMoveSelector chapter to avoid others running into the same problem!! Done, thanks for

Re: [rules-users] No such field org.optaplanner.core.config.heuristic.selector.value.chained.SubChainSelectorConfig.entitySelector

2014-06-06 Thread Geoffrey De Smet
The docs were wrong. Docs fixed for 6.1.0.CR1: http://github.com/droolsjbpm/optaplanner/commit/496ef134b On 06-06-14 16:15, Geoffrey De Smet wrote: On 06-06-14 14:13, dBijkoo wrote: when I use this code: subChainChangeMoveSelector subChainSelector

[rules-users] 6.0.1.F Duplicate rule error when I rename or copy a guided rule

2014-06-06 Thread SrjTx
The renamed rule or the copy has the original rule name in the source - which you can't change. Is there a fix for this already in git hub? -- View this message in context: http://drools.46999.n3.nabble.com/6-0-1-F-Duplicate-rule-error-when-I-rename-or-copy-a-guided-rule-tp4029910.html Sent

[rules-users] Grouping of rule and range check

2014-06-06 Thread Chaturvedi Dewashish
Hi, I have a requirement which is as 1. There are three rules lets say rule1, rule2 and rule3 2. rule1 says there is a person Age 40 Age = 20 Then do something 3. rule2 says there is a person Age 60 Age = 40 Then do

Re: [rules-users] Grouping of rule and range check

2014-06-06 Thread Wolfgang Laun
Are these seven (or eight) different objects of class Person? -W On 06/06/2014, Chaturvedi Dewashish dewash...@nirvana-sol.com wrote: Hi, I have a requirement which is as 1. There are three rules lets say rule1, rule2 and rule3 2. rule1 says there is a person Age 40

[rules-users] 6.0.1.F Enumerations that hit class that access DB don't update as expected

2014-06-06 Thread SrjTx
I have a class xyz that accesses a DB to populate the dropdown: 'mybean.q1' : (new QueryThins()).getList(FOO, BAR) This works, except that when the backing store changes, the dropdown don't update even if you leave and re-enter the editor. I have a workaround below. I there a fix for this on