Re: [rules-users] Trivial rule with condition in RHS won't compile, help please

2009-12-03 Thread CK
I would assume that you're trying to test out rule writing and see what works and what doesn't. I don't believe you can use if statements in the RHS. Normally, anytime you want to use "if" statements inside the RHS, it's a sure sign that you should move it to the LHS and create separate

Re: [rules-users] Interface implementation not working..

2009-12-02 Thread CK
Try changing your BOM_TRANSACTION_DETAILS Display() method access to public and see if it works. Currently, you have it as "void Display()" in your BOM_TRANSACTION_DETAILS method declaration. Change it to "public void Display()". It might solve your problem. No need to change method dec

Re: [rules-users] Hibernate proxy objects equality tests failing in Drools 5

2009-05-05 Thread CK
With the new hibernate jars and the migration to the new Javassist, what hibernate is essentially doing is dynamically generating hibernate proxy objects that should subclass the original file. Here's the interesting part. In groovy, comparing two hibernate objects: a.a == b.a works fine

Re: [rules-users] Hibernate proxy objects equality tests failing in Drools 5

2009-05-05 Thread CK
Oh, and a couple other things I forgot to mention. I believe Hibernate by default will lazily load all association objects. You have to explicitly set the lazy loading to false in order to get eager fetching. I don't consider to be ideal as I have a pricing object that contains many optio

[rules-users] Hibernate proxy objects equality tests failing in Drools 5

2009-04-27 Thread CK
Hi, I'm testing out some simple codes using Hibernate and Drools 5 and I'm hitting an issue with hibernate proxy objects. With the newer version of hibernate, Javassist is used to proxy some hibernate objects. By doing this, hibernate objects essentially cannot use == comparisons, which

[rules-users] Use of bitwise operators in LHS expression

2009-03-17 Thread CK
va style, not mvel. Am I correct on this one? Thank you, CK ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Re: Testing out Type Declarations in simple rule file causing exceptions

2009-03-15 Thread CK
to log in, it won't let me. I'll try again later, but if I can't login, I won't be able to create a Jira issue. :X -ck On Mar 15, 2009, at 6:10 AM, Edson Tirelli wrote: There were some changes in the latest MVEL release making it more strict on type resolution.

[rules-users] Re: Testing out Type Declarations in simple rule file causing exceptions

2009-03-15 Thread CK
the class? It's quite strange though. Considering that I'm following the docs, I should be able to dynamically create a new type declaration instance without qualifying it. The following somehow works: then insert(new com.test.abc.Domestic()); end Why is drools/mvel being so str

[rules-users] Testing out Type Declarations in simple rule file causing exceptions

2009-03-15 Thread CK
Hi, I'm wondering if I am doing something wrong in my code: I create dummy type declarations to indicate presence of certain states (is there possibly a better way of doing this?): declare Domestic dummy : boolean end declare Multiple dummy : boolean end rule "..." when ...

[rules-users] Querying persistence rules flow data

2009-02-25 Thread CK
Hi all, Before I ask my question, just wanted to know if others have noticed that the Hudson docs for Drools 5 is not available online. Or maybe it's just me? I'm a little bit of a beginner in this particular area on the Drools flow and its persistence mechanism. I have a couple questio

Re: [rules-users] Drools, Grails, and default packages for domain objects

2009-01-20 Thread CK
If I understand you correctly, this is a Java runtime restriction. Java classes in the default package can reference any class in a named package. Other the other hand, classes in a named package cannot reference any class in a default package. Classes in a default package can reference o

Re: [rules-users] Re: [rules-dev] Drools 5.0 M3/M4 New and Noteworthy Release Summary

2008-12-28 Thread CK
d one less API system to learn. However, based on what I've been seeing so far, ruleflow is a purely in-memory deal. I have read some discussions that it's possible to persist the workflow for long-running tasks (ie. days). How would I go about doing this or learning about this?