[rules-users] Question

2011-04-05 Thread Heng hh
Hi all I would like to ask how drools run . I found that they can run in two different drl file. What is salience for ?. rule " Teting 571" salience 4200 when root:AdjudicationDTO(type=="PRIORAPPROVAL_LINE",t:type); pa:PriorApproval(); pal:PriorApprovalLi

Re: [rules-users] Manuel's Analysis of JBRULES-2887 (NPE in AccumulateNode.java:967)

2011-04-05 Thread Edson Tirelli
Hi Manuel, Sorry about the delay in replying... quite busy during the last few weeks. The fix I am talking about is this: https://github.com/droolsjbpm/droolsjbpm/commit/16389ae57506debab8d13c286d13ee873df98461

Re: [rules-users] Manuel's Analysis of JBRULES-2887 (NPE in AccumulateNode.java:967)

2011-04-05 Thread Manuel Ortiz
Hi again: Just to inform I've made slight modifications to JoinNode code locally that seems to solve the SampleAlarmRules problem and any other problem (up to now) in my application rule set related to JoinNodes whose sink is composite. If anyone needs these modifications while the corrected rele

Re: [rules-users] KnowledgeAgent Issue

2011-04-05 Thread Esteban Aliverti
I have created the following issue to keep track of this problem: https://issues.jboss.org/browse/JBRULES-2940 I have also made some fixes, so It would be great if you could test them. Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com

Re: [rules-users] Drools Guvnor - Websphere 7

2011-04-05 Thread David Faulkner
I agree with Tihomir. Make sure that the web application is deployed with a PARENT_LAST classloader configuration. Also, you probably need to update the components.xml file to specify the location of the repository to a separate FS location that you know the application server user has access t

Re: [rules-users] Drools Guvnor - Websphere 7

2011-04-05 Thread Tihomir Surdilovic
Seems you have an older jcr jar on your classpath that gets loaded before Guvnor's jcr-2.0.jar in WEB-INF/lib. On 4/5/11 11:07 AM, smileychappy wrote: > I'm trying to install and run Guvnor on Websphere 7. > > When I try starting the app, I get the following exception > > [4/5/11 11:02:26:793 EDT

[rules-users] Drools Guvnor - Websphere 7

2011-04-05 Thread Laks Sundararajan
> I'm trying to install and run Guvnor on Websphere 7. > > When I try starting the app, I get the following exception > > [4/5/11 11:02:26:793 EDT] 0085 webappE > com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: > Exception caught while initializing context:

[rules-users] Drools Guvnor - Websphere 7

2011-04-05 Thread smileychappy
I'm trying to install and run Guvnor on Websphere 7. When I try starting the app, I get the following exception [4/5/11 11:02:26:793 EDT] 0085 webappE com.ibm.ws.webcontainer.webapp.WebApp notifyServletContextCreated SRVE0283E: Exception caught while initializing context: {0}

Re: [rules-users] Rule does not fire after 'Modify/Update' of a fact - Drools 5.1.1 !

2011-04-05 Thread groovenarula
oh - ok - My bad then - I need to read up more on how to write proper hashing algorithm - for what ever reason, I thought that == use object reference when comparing objects ! I guess that's not the case and that it's using the object's hash code to compare objects. Thanks for pointing this issue

Re: [rules-users] Rule does not fire after 'Modify/Update' of a fact - Drools 5.1.1 !

2011-04-05 Thread Wolfgang Laun
Your Product.hashCode uses dynamic information: price. -W On 5 April 2011 15:22, groovenarula wrote: > Just ran another test, I removed the check for 'price == null' in the 'Set > Options Price' rule - so the rules now reads : > > rule "Set Options price" >salience 50 >when >

Re: [rules-users] Rule does not fire after 'Modify/Update' of a fact - Drools 5.1.1 !

2011-04-05 Thread groovenarula
Just ran another test, I removed the check for 'price == null' in the 'Set Options Price' rule - so the rules now reads : rule "Set Options price" salience 50 when $prod : Product ( ) $option : Option ( product == $prod ) then

Re: [rules-users] Rule does not fire after 'Modify/Update' of a fact - Drools 5.1.1 !

2011-04-05 Thread groovenarula
Thanks for the response Wolfgang. I am not calling ksession.fireAllRules(1). I just have ksession.fireAllRules(); I tried inserting 2 pairs - One product with a price set and the other left as null. The one with the null still does not fire the 'Set Options Price' after it's price has been set by

Re: [rules-users] Map Accessor not allowing using a $parameter, gets field extractor error

2011-04-05 Thread AberAber
Oh I should've mentioned, this was in the top of drl file: dialect "mvel" -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Map-Accessor-not-allowing-using-a-parameter-gets-field-extractor-error-tp2776894p2779707.html Sent from the Drools - User mailing list ar

Re: [rules-users] Speed up inserting of rules into knowledge base

2011-04-05 Thread Drooliver
I have a very similar issue - so I'm interested in any further performance tips or findings: We use Drools with an interface where users can update / edit rules. Those rules are then stored (and versioned) in a database. Afterwards the rules are fetched again from database and added one by one in

[rules-users] RuleFlow WorkItem check for abort

2011-04-05 Thread cherokee
Hello, I am newbie to using drools and using version 5.1.1 for my ruleflow test case. Testcase: In the workItemHandler for a workitem, whenever exception occurs I catch the exception and set manager.abortWorkItem(workItem.getId()); I have 2 questions: 1) Is there a way in the onExit of workItem