[rules-users] Lock-on-active and ruleflow-group

2011-08-08 Thread bitter
I have three rules: rule First rule salience 20 ruleflow-group rfs_1 lock-on-active true when $c: Car(color == red) then $c.setPrice(1); update($c); end rule Second rule salience 25

Re: [rules-users] Lock-on-active and ruleflow-group

2011-08-09 Thread bitter
Do you activate the ruleflow-group before you insert the Car fact? No, I don't think so. This is body of my test class: public class CarKnowledgeBaseTest { @Test public void shouldObtainPriceWhereSalienceIsBigger() throws Exception { //given KnowledgeBase kbase =

Re: [rules-users] Lock-on-active and ruleflow-group

2011-08-09 Thread bitter
activate the ruleflow-group before you insert the Car fact? -W On 9 August 2011 11:05, bitter lt;rgorz...@gmail.comgt; wrote: Log: ==[BeforeActivationFiredEvent:  getActivation()=[Activation rule=Second rule, act#=1, salience=25, tuple=[fact 0:1:1428842218:1428842218:1:DEFAULT:Car{color='red

Re: [rules-users] Lock-on-active and ruleflow-group

2011-08-10 Thread bitter
logic. -W On 9 August 2011 13:08, bitter rgorz...@gmail.com wrote: But when I use activation-group only one fact has price. I would like to insert two facts (or more) and only one rule invoke per fact.Like in my test class. Could you look at use case that I attached in my first post? Thanks

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread bitter
But I have RuleSet, Import and Variables. This exception occurs only sometimes. Sometimes when I change cell outside the decision table and save changes, rules work. -- View this message in context: http://drools.46999.n3.nabble.com/Druplicate-rule-name-0-tp3246425p3246494.html Sent from the

Re: [rules-users] Druplicate rule name: 0

2011-08-11 Thread bitter
I have RuleTable and I use NAME column. As I said all works till I try (all rules are proper, have names, have flow-group, etc.) to change and save file. Now when exception occurs I copy changed content of the xls to new xls and use new xls instead of old xls and then everything works. But it is

Re: [rules-users] Druplicate rule name: 0

2011-09-06 Thread bitter
I found the reason. Cells in my spreedsheet had wrong formatting - number formatting . I change it to text formatting and every thing works. -- View this message in context: http://drools.46999.n3.nabble.com/Druplicate-rule-name-0-tp3246425p3314886.html Sent from the Drools: User forum mailing

[rules-users] KnowledgeRuntimeLogger file logger

2012-05-19 Thread bitter
I registered file KnowledgeRuntimeLogger (logging output will be similar to that generated by the registered WorkingMemoryEventListener) and trying to analize output xml. Here is output content: object-stream org.drools.audit.event.ActivationLogEvent type4/type activationIdcheck education -

[rules-users] Drools verifier - redundancy detection

2012-05-20 Thread bitter
I would like to use drools-verifier to detect redundancy in my drl files. But drools-verifier can not detect redundancy even in simple drl. Maybe I do something wrong ;/. *Simple drl file:* rule rule 1 when $person: Person(age==16, name==Anna) then retract($person); end rule

Re: [rules-users] Drools verifier - redundancy detection

2012-05-20 Thread bitter
I found bug in jira: https://issues.jboss.org/browse/JBRULES-3484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel -- View this message in context: http://drools.46999.n3.nabble.com/Drools-verifier-redundancy-detection-tp4003736p4003862.html Sent from the Drools: User forum