Re: [rules-users] Help with troubleshooting rules/Drools

2011-10-31 Thread Richard Calmbach
Robert Crawford wrote: > > Any advice on how to troubleshoot problems? I have a fairly simple set of > rules (a couple dozen), but keep having problems with fatal exceptions. > The most recent was: > > org.drools.RuntimeDroolsException: Unexpected exception executing action > org.drools.reteoo.P

Re: [rules-users] Online 5.3.0 javadocs

2011-10-31 Thread Richard Calmbach
Martin A wrote: > > Hello, > I'm looking for the online 5.3.0 javadocs, but can't find it... Would you > point me to a reference? > I have not been able to find online (as opposed to download) javadoc for any version of Drools after 5.1.1 either. I created an issue about that here: https://issu

[rules-users] Help with troubleshooting rules/Drools

2011-10-31 Thread Robert Crawford
Any advice on how to troubleshoot problems? I have a fairly simple set of rules (a couple dozen), but keep having problems with fatal exceptions. The most recent was: org.drools.RuntimeDroolsException: Unexpected exception executing action org.drools.reteoo.PropagationQueuingNode$PropagateAction@1

Re: [rules-users] How can Drools Planner consume Guvnor generated drl file?

2011-10-31 Thread ge0ffrey
See manual, section on setRulebase() instead of scoredrl Feel free to open a jira if bits can improve. -- View this message in context: http://drools.46999.n3.nabble.com/How-can-Drools-Planner-consume-Guvnor-generated-drl-file-tp3467722p3469265.html Sent from the Drools: User forum mailing list

[rules-users] Live Queries and Expired Events

2011-10-31 Thread Robert Crawford
I have a live query that should match *all* the events I insert. However, it's apparently not being called for a large number of them. It appears that if an event is expired at the time of insert, it's not tripping the rowRemoved part of the query. Is this the expected behavior? If so, is there so

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-10-31 Thread Michael Anstis
Is it possible for you to provide a repository export? I think I know what you have configured but an export would help. sent on the move On 31 Oct 2011 20:40, wrote: > Here's the model: > > declare Vehicle > engineType: String > fuelType: String > end > > Here's the DSL: > > [w

Re: [rules-users] Guvnor custom form not working for DSL sentences

2011-10-31 Thread GPatel
Here's the model: declare Vehicle engineType: String fuelType: String end Here's the DSL: [when]there is a vehicle=$vehicle : Vehicle() [when]- with engine type {value}=engineType=="{value}" [then]say hello=System.out.println("Hello"); When I create a rule using the Guided Edito

Re: [rules-users] rule fires several times

2011-10-31 Thread arrehman
You are right, I need to re-think what I am doing. Perhaps there is no need for me to do the update() calls. I will post back. Thanks. -- View this message in context: http://drools.46999.n3.nabble.com/rule-fires-several-times-tp3466250p3468776.html Sent from the Drools: User forum mailing list a

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Michael Anstis
H... this may be the way it works, but it's not clear from the documentation- "The Conditional Element from enables users to specify an arbitrary source for data to be matched by LHS patterns. This allows the engine to reason over data not in the Working Memory. The data source could be a sub-

Re: [rules-users] Sliding Length Windows

2011-10-31 Thread diana-mendes
Thank you! Diana -- View this message in context: http://drools.46999.n3.nabble.com/Sliding-Length-Windows-tp3438408p3468583.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.

[rules-users] Time Window

2011-10-31 Thread diana-mendes
Hello, I want to implement a simple scenario using Drools, but I can't find the right functions to do so. I have a class named Notif that represents my events. When I receive a Notif with a certain attribute (for example, type == "A") I want to get a list of all the events I receive in the next

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Wolfgang Laun
If the "donator" isn't a fact, it's not visible to the engine. Globals are OK on the RHS and as a provider for constant (!) data used as stand-in for literals on the LHS. Other than this: beware! -W 2011/10/31 Michael Anstis > I thought use of the "from" keyword allowed you to reason over fac

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Michael Anstis
I thought use of the "from" keyword allowed you to reason over facts (potentially) not in WM. I believe the OP's example is mentioned in the docs? sent on the move On 31 Oct 2011 15:08, "Wolfgang Laun" wrote: > Globals cannot to be used - directly or indirectly - as objects that > should trigge

Re: [rules-users] rule fires several times

2011-10-31 Thread Wolfgang Laun
On 31 October 2011 17:06, arrehman wrote: > I have /update()/ on consequence/action part of rules, which I can't void. It seems to me that you are contradicting yourself. If you can't remove update() then this means that you do need the changes to facts being made known to the rules engine so t

Re: [rules-users] rule fires several times

2011-10-31 Thread arrehman
I have /update()/ on consequence/action part of rules, which I can't void. I guess there is no way and rule engine is doing the right thing then. -- View this message in context: http://drools.46999.n3.nabble.com/rule-fires-several-times-tp3466250p3468183.html Sent from the Drools: User forum mai

Re: [rules-users] rule fires several times

2011-10-31 Thread Wolfgang Laun
On 31 October 2011 16:41, arrehman wrote: > Makes sense, pretty good explanation. > > Is there a way to turn this behaviour off? I don't want the rule engine to > re-calculate the rules when I update a fact inside the rule engine. Is that > possible? Just don't make the engine aware of changes

Re: [rules-users] rule fires several times

2011-10-31 Thread arrehman
Makes sense, pretty good explanation. Is there a way to turn this behaviour off? I don't want the rule engine to re-calculate the rules when I update a fact inside the rule engine. Is that possible? The reason I ask is that in my application it makes sense based on the way I have structured the ru

[rules-users] Turning off strict mode

2011-10-31 Thread Alexander
Hello. Is it possible to turn off strict mode in Drools 5.2 or 5.3 like in 5.1? How can i do it? We use Drools 5.1 and we use lots of maps so we turned off strict mode. I tried to switch to Drools 5.2 or 5.3 but setting System.setProperty("drools.dialect.mvel.strict", "false") doesn't work with t

Re: [rules-users] global as link to DB: different results

2011-10-31 Thread Wolfgang Laun
Globals cannot to be used - directly or indirectly - as objects that should trigger the firing of rules. It is only insert, modify or update, and retract that cause (re-)evaluation of LHS conditions. -W On 31 October 2011 15:05, elsdestickere wrote: > Hi, > > I read docs about global and Hibern

Re: [rules-users] Does window:length work in Drools version 5.1.1 ?

2011-10-31 Thread eskomk
Hi W, Thank you, the sum in tracker approach worked fine. Now I'll test if the update of tracker instead of creating level2 tracker is enough for us ... On the other hand, we are now considering moving from drools 5.1.1 to 5.2.0 or to 5.3.0. br Esko Esko Hujanen www.ebsolut.fi -- View

[rules-users] global as link to DB: different results

2011-10-31 Thread elsdestickere
Hi, I read docs about global and Hibernate to access your DB from the rules. I tried something simular for in memory DAO's. But some rules fire ("WM" in RHS) as the DAO has 3 items, but others ("dao" in LHS) don't, how is that possible? global RepositoryFactory repFact; rule "dao" when

Re: [rules-users] Sliding Length Windows

2011-10-31 Thread Edson Tirelli
import java.util.List Edson 2011/10/31 diana-mendes > Hello, > > Thank you for your response, I understand how the sliding window works now. > However, when I use the code you wrote I get the following error: > > Exception in thread "main" java.lang.RuntimeException: Unable to resolve > O

[rules-users] How can Drools Planner consume Guvnor generated drl file?

2011-10-31 Thread Praveen
Hi, We are trying to build a system where drools planner consumes drl from the Guvnor. The planner doesnot use Knowledgebase built on ChangeSet.xml which is a conventional way of using drl from Guvnor in Java apps. Please let us know the details of how we can achieve this . Also how can we get r

[rules-users] Online 5.3.0 javadocs

2011-10-31 Thread Martin A
Hello, I'm looking for the online 5.3.0 javadocs, but can't find it... Would you point me to a reference? Thanks, Martin ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Sliding Length Windows

2011-10-31 Thread diana-mendes
Hello, Thank you for your response, I understand how the sliding window works now. However, when I use the code you wrote I get the following error: Exception in thread "main" java.lang.RuntimeException: Unable to resolve ObjectType 'List' : [Rule name='Rule2'] Unable to Analyse Expression $las

Re: [rules-users] how can i get document of ruleflow?

2011-10-31 Thread xdyl
thanks very much. i will try the newest version. -- View this message in context: http://drools.46999.n3.nabble.com/how-can-i-get-document-of-ruleflow-tp3460258p3467353.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rule

Re: [rules-users] how can i get document of ruleflow?

2011-10-31 Thread Mauricio Salatino
Drools flow doesn't exist any more from the newest versions, now the project is called jBPM5: http://www.jboss.org/jbpm/documentation Cheers On Mon, Oct 31, 2011 at 4:56 AM, xdyl wrote: > i want use the latest version of drools. > > it can be 5.3.0 > > > if drools flow and jbpm5 is the same th

Re: [rules-users] how can i get document of ruleflow?

2011-10-31 Thread xdyl
i want use the latest version of drools. it can be 5.3.0 if drools flow and jbpm5 is the same thing ,how can i get the jbpm5 document? i didnt find document in the link you give me. but i find another link in google search with " drools flow manual ": http://downloads.jboss.com/drools/docs/5

Re: [rules-users] how can i get document of ruleflow?

2011-10-31 Thread Mauricio Salatino
jBPM5 and Drools Flow are based on the same code base. jBPM3 and jBPM 4.x are not the same. Which version are you evaluating? Cheers On Mon, Oct 31, 2011 at 4:43 AM, xdyl wrote: > Thanks. > But the drools flow and jbpm is the same thing? > > > http://www.jboss.org/drools/drools-flow.html > in th

Re: [rules-users] how can i get document of ruleflow?

2011-10-31 Thread xdyl
Thanks. But the drools flow and jbpm is the same thing? http://www.jboss.org/drools/drools-flow.html in this link,i find it say wrote: > > Drools Flow is a community project. jBPM is still the only offical > workflow product at JBoss. Drools Flow and jBPM are two separate projects. > This i