[rules-users] Guvnor Integration with BPEL

2011-09-08 Thread Rabindra Kumar Srivastava
Hi, I am using guvnor 5.2.0Final version to create rules and integrating with ActiveVOS. I am successfully done with one rule in a package using the url url=http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/final/ LATEST. Now I have created two more rules in the same package

Re: [rules-users] Function and return value

2011-09-08 Thread Wolfgang Laun
Please produce a complete set of DRL and .java files showing the problem so that it can be reproduced. -W On 7 September 2011 17:53, snehils sneh...@gmail.com wrote: I have made a function in drl file. This function is calling another function from java file. This java file function returns

Re: [rules-users] Alternative to instanceof when matching against multiple concrete types under the same hiearchy?

2011-09-08 Thread laune
Inverting the order of patterns (and following Lisa's idea) makes the problem go away: rule asdf when OtherType( $member : member ) Interface( this == $member ) then // do whatever with $member end This can be constrained to a subset of subclasses if there is also ConcreteType3

Re: [rules-users] Question about custom accumulation functions

2011-09-08 Thread Bruno Freudensprung
Hi Edson, hi all, To stick to the subject, I have a strange problem (stack trace in PS) with a rule containing two accumulate calls, the result of the first one is re-injected as the input of the second one. Those accumulate functions are home made. The first one (tokenize) returns an

Re: [rules-users] Guvnor Integration with BPEL

2011-09-08 Thread Michael Anstis
Have you rebuilt the package in Guvnor? 2011/9/8 Rabindra Kumar Srivastava rs0090...@techmahindra.com Hi, ** ** I am using guvnor 5.2.0Final version to create rules and integrating with ActiveVOS. I am successfully done with one rule in a package using the url url=

Re: [rules-users] Guvnor Integration with BPEL

2011-09-08 Thread Rabindra Kumar Srivastava
I have rebuild the package in guvnor and the changes are reflecting the package. My issue is suppose we have two rules Rule1 and Rule2 in package final. Now if I have to access Rule1 in BPEL1 and Rule2 in BPEL2 then how I can achieve that. Rabindra Kumar Srivastava | ATT04 | Tech Mahindra

Re: [rules-users] Unable to get WebDav Access, unless modify JackRabbit Config

2011-09-08 Thread Jervis Liu
Hi, The problem you reported should have been fixed on Guvnor 5.3. A Guvnor 5.3_CR1 release should be coming soon. I found some other minors problem with WebDav on Guvnor 5.3 which has been reported as https://issues.jboss.org/browse/GUVNOR-1626. Though this bug wont affect you with simple

Re: [rules-users] Question about custom accumulation functions

2011-09-08 Thread Edson Tirelli
It looks like a bug, as it should not raise a NPE no matter what which version of Drools are you using? Edson 2011/9/8 Bruno Freudensprung bruno.freudenspr...@temis.com ** Hi Edson, hi all, To stick to the subject, I have a strange problem (stack trace in PS) with a rule

Re: [rules-users] Question about custom accumulation functions

2011-09-08 Thread Bruno Freudensprung
I am using Drools 5.1.1. Do you want me to package a small maven project exhibiting that error, and post a Jira? Bruno. Le 08/09/2011 15:04, Edson Tirelli a écrit : It looks like a bug, as it should not raise a NPE no matter what which version of Drools are you using? Edson

Re: [rules-users] Question about custom accumulation functions

2011-09-08 Thread Edson Tirelli
Bruno, Can you please test it with latest snapshot? If it is still a problem, then please open a JIRA and provide the test to reproduce it... https://hudson.jboss.org/jenkins/view/Drools%20jBPM/job/drools/lastSuccessfulBuild/artifact/drools-distribution/target/ Thanks, Edson

[rules-users] How to get a Facts handle in Custom Evaluator

2011-09-08 Thread kashif10
Lets say we have 100s or 1000s of Fact objects of Observation. In rule we need to compare it with some data lets say Observation( this checkObs SomeData) Where checkObs is our customeEvaluator Now we have to make the RHS dynamic... That If we have some data in database depending upon the

[rules-users] rules for promotional offers

2011-09-08 Thread Sandeep Bandela
Hi, I am new to rules engine, after going through the examples shipped (shopping.drl, petstore.drl) I am trying to implement promotional discounting using drools 5.2.0 final, stateful session. assume cart has all the items that customer wants to buy, I am trying to bundle them together with the

[rules-users] droolsWithjbpm

2011-09-08 Thread DroolersEye
can I use drools-5.1.1 jar fils with jbpm5.1 project. What I mean is can replace the drools5.2 jars in the jbpm5.1 binary folder. - with kind regards, -- View this message in context: http://drools.46999.n3.nabble.com/droolsWithjbpm-tp3321150p3321150.html Sent from the Drools: User forum

Re: [rules-users] droolsWithjbpm

2011-09-08 Thread Mauricio Salatino
I think that you can't. You should check the interfaces.. but I'm pretty sure that jbpm5.1 uses drools 5.2. You will have troubles with different interfaces and missing methods implementations. Cheers On Thu, Sep 8, 2011 at 6:06 PM, DroolersEye sprabak...@gmail.com wrote: can I use drools-5.1.1

[rules-users] prevent rule evaluation for certain rules while event insertion

2011-09-08 Thread Neel
Hi,I'm using Drools 5.3.0. I've a proprietary key-value based data store, where all the events are stored. As soon as an event is received, it is inserted in the session and the rules (example below) is fired: rule registration countno-loopdialect mvelwhen $e : Event(type == registration,

Re: [rules-users] rules for promotional offers

2011-09-08 Thread Wolfgang Laun
Your rule exhibits procedural thinking. (For an aspiring rule programmer his is typical teething troubles.) There's no need to collect all A's and B's in order to determine their number being greater than one or two - this is achieved automatically by a simple triple match rule. Consider rule 2A

Re: [rules-users] prevent rule evaluation for certain rules while event insertion

2011-09-08 Thread Wolfgang Laun
An Event is either not counted yet, or already counted. If repeated counting is to be avoided during repeated insertion, store the counted property with the Event and write your rules accordingly. -W 2011/9/9 Neel neelesh...@yahoo.co.in Hi, I'm using Drools 5.3.0. I've a proprietary key-value