[rules-users] Basic Question about Errors

2008-01-15 Thread Markus Helbig
Hi, it's a basic question but since half a year i am not sure how to read the error [53,61]: unknown:53:61 Unexpected token '('[53,73]: unknown:53:73 mismatched token: [EMAIL PROTECTED],2278:2278=')',<12>,53:73]; expecting type THEN[65,61]: which line/position is indicated in the corresponding

[rules-users] Can "From" reason over primitive arrays?

2008-01-15 Thread Henry Canterburry
I am trying to pattern match on a primitive array such as String[] or SomeObject[]. The documentation only mentions collections in the section about From. Would a pattern match syntax such as... rule "My rule" when $source : SourceObject() $myObject : MyObject() from $source.ret

Re: [rules-users] Uploading the fact model to the DRools BRMS

2008-01-15 Thread Akila Geethal
Where should i include the property file? Is it the .pkg file we edit when we are working with drools in ecliplse?? On Jan 14, 2008 2:10 PM, Akila Geethal <[EMAIL PROTECTED]> wrote: > iam reading that..In the BRMS section i coundnot find ny thing about a > property file???In which section is it?

[rules-users] Re: shadow copy lacks a property value of the original fact

2008-01-15 Thread Henry Canterburry
Removing the Collections interface from the NamedCollection class seems to have fixed the problem. HC ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] shadow copy lacks a property value of the original fact

2008-01-15 Thread Henry Canterburry
I was just debugging my rules and monitored my working memory and variables, trying to figure out why a certain Pattern match was not firing, and noticed that a property value for a fact I inserted earlier via the RHS does not seem to be inserted into working memory along with the object. The f

Re: [rules-users] Prefix 'and' and infix 'and' not interchangeable?

2008-01-15 Thread Edson Tirelli
Actually, I just understood the problem. The "not" CE requires () when used with anything that is not a simple pattern. So the following are valid constructions: not A() not( A() and B() ) Now, if you want to use a prefixed "and"/"or", it also requires a (). So the following is a valid

Re: [rules-users] Prefix 'and' and infix 'and' not interchangeable?

2008-01-15 Thread Edson Tirelli
This is a bug. May I ask you please to open a JIRA for it? Thanks Edson 2008/1/15, Gattiker, Alexandre <[EMAIL PROTECTED]>: > > The documentation on the 'and' Conditional Element seems to imply that > these constructs are equivalent: > > $p1:Entity($code1:code) >

[rules-users] Drools 4.0.4 Released

2008-01-15 Thread Fernando Meyer
We just released Drools v4.0.4. This is a minor release with a few improvements on existing features and some bug fixes. Release Notes - JBoss Drools - Version 4.0.4 We would like to really thanks all the contributors that helped on getting this release out. From those contributing patches and do

[rules-users] Prefix 'and' and infix 'and' not interchangeable?

2008-01-15 Thread Gattiker, Alexandre
The documentation on the 'and' Conditional Element seems to imply that these constructs are equivalent: $p1:Entity($code1:code) not (and $p2:Entity(code == $code1) eval(MyStaticClass.match($p1, $p2))

Re: [rules-users] Error creating shadow fact for object: [] when inserting Collection into working memory

2008-01-15 Thread Edson Tirelli
Henry, This is tricky. Can you please open a JIRA for it? I will take a look as soon as I can on how to fix that. Meanwhile, the workaround is: instead of inheriting from a collection class, can you wrap it instead? public class NamedCollection { private String name; private Linke

Re: [rules-users] Splitted Sentences in DSL...

2008-01-15 Thread Edson Tirelli
AFAIK, that "feature" and screenshot was contributed by a community member. I don't know if it is active in the codebase... Kris, do you know? []s Edson 2008/1/15, mmquelo massi <[EMAIL PROTECTED]>: > > > Hi guys, > > As u can notice in the > http://labs.jboss.com/file-access/default

Re: [rules-users] Strange property access behavior resulting in NullPointerException

2008-01-15 Thread Edson Tirelli
Henry, If you look at the stack trace, the NPE happens inside your own class method: at org.activequant.core.domainmodel.TimeSeries.getInstrumentSpecification(Unknown Source) So, you need to look at what that method is doing to know why it is raising the NPE. []s Edson 2008/

[rules-users] Splitted Sentences in DSL...

2008-01-15 Thread mmquelo massi
Hi guys, As u can notice in the http://labs.jboss.com/file-access/default/members/drools/images//templatebaseddsl2.png DSL pop-up Menu, we have got the sentence "Escalate the ticket" splitted into 3 different sub-sentences: 1. Escalate 2. Escalate the 3. Escalate the ticket When I open "*org.dro