anybody have the idea of what is consequneceexception....why it is occured?
am using droosl 3.0.6
 
org.drools.spi.ConsequenceException - org.drools.RuntimeDroolsException: 
java.lang.NullPointerExceptionorg.drools.spi.ConsequenceException: 
org.drools.RuntimeDroolsException: java.lang.NullPointerException at 
org.drools.common.DefaultAgenda.fireActivation(Unknown Source) at 
org.drools.common.DefaultAgenda.fireNextItem(Unknown Source) at 
org.drools.common.AbstractWorkingMemory.fireAllRules(Unknown Source) at 
Thanks and Regs,
Basha

________________________________

From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Mon 7/9/2007 1:04 PM
To: rules-users@lists.jboss.org
Subject: rules-users Digest, Vol 8, Issue 45



Send rules-users mailing list submissions to
        rules-users@lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. Re: Re: No OR syntax (Ronald R. DiFrango)
   2. More JBoss Rules IDE 4.x upgrade Woes (Ronald R. DiFrango)
   3. Re: Re: No OR syntax (Mark Proctor)
   4. Re: More JBoss Rules IDE 4.x upgrade Woes (Ronald R. DiFrango)
   5. matches operator (Ashwini Joshi)


----------------------------------------------------------------------

Message: 1
Date: Sun, 8 Jul 2007 17:56:27 -0400
From: "Ronald R. DiFrango" <[EMAIL PROTECTED]>
Subject: Re: [rules-users] Re: No OR syntax
To: "Mark Proctor" <[EMAIL PROTECTED]>
Cc: Rules Users List <rules-users@lists.jboss.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

Nice; an in operator just like SQL :-)

On 7/7/07, Mark Proctor <[EMAIL PROTECTED]> wrote:
>
>  Sorry it's now && and ||
> You can also us the 'in' operator
> Cheese( type in ( 'stilton', 'brie' ))
> Cheese( type not in ( 'stilton', 'brie' ))
> Cheese( type memberOf $myCheeseTypeList )
> Cheese( type not memberOf $myCheeseTypeList )
>
> Mark
>
> Ronald R. DiFrango wrote:
>
> Answered my own question:
>
> MyObject (status == StatusConstants.MATCHED | == StatusConstants.APPROVAL)
>
> On 7/7/07, Ronald R. DiFrango < [EMAIL PROTECTED]> wrote:
> >
> > All,
> >
> > If I remember correctly, in the 4.x version of Drools you were adding an
> > or type syntax where you could compare a value against multiple values.
> > What is the new syntax for it?
> >
> > I am looking to do something logically like:
> >
> > MyObject (status in ("Open" or "Matched")
> >
> > Ron
> >
>
> ------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20070708/378aa152/attachment-0001.html

------------------------------

Message: 2
Date: Sun, 8 Jul 2007 17:59:47 -0400
From: "Ronald R. DiFrango" <[EMAIL PROTECTED]>
Subject: [rules-users] More JBoss Rules IDE 4.x upgrade Woes
To: "Rules Users List" <rules-users@lists.jboss.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

All

I have to that upgrading a 3.0.x JBoss rules project to a 4.0.x version is
not the smoothest transition.

First, I reported that the library path is not correct but I was able to
work around this issue.

Now, I found another feature/bug.  When I click on RETE view, I get the
following exception:

!ENTRY org.drools.eclipse 4 120 2007-07-08 17:54:09.181 !MESSAGE Internal
error in Drools Plugin: !STACK 0 java.lang.Exception: Unable to parse rules
to show RETE view! at
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source) at
org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
ModalContext.java:113) !ENTRY org.drools.eclipse 4 120 2007-07-08 17:54:
09.259 !MESSAGE Internal error in Drools Plugin: !STACK 0
java.lang.reflect.InvocationTargetException at
org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
ModalContext.java:113) Caused by: java.lang.Exception: Unable to parse rules
to show RETE view! at
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source) ...
2 more Root exception: java.lang.Exception: Unable to parse rules to show
RETE view! at org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown
Source) at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
ModalContext.java:113)


Do I really have to create a new Project and re-import everything over to it
to get it to work properly?  Is there no upgrade feature that automatically
upgrades my project like in most other Eclipse plugins?

Thanks!

Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20070708/c55b08f5/attachment-0001.html

------------------------------

Message: 3
Date: Sun, 08 Jul 2007 23:29:48 +0100
From: Mark Proctor <[EMAIL PROTECTED]>
Subject: Re: [rules-users] Re: No OR syntax
To: [EMAIL PROTECTED], Rules Users List
        <rules-users@lists.jboss.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

The 'in' operator is just sugar for == 'stilton' || == 'brie' but we
felt it improved the declarative nature of the language sufficiently to
warrant the sugar.

Mark
Ronald R. DiFrango wrote:
> Nice; an in operator just like SQL :-)
>
> On 7/7/07, *Mark Proctor* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Sorry it's now && and ||
>     You can also us the 'in' operator
>     Cheese( type in ( 'stilton', 'brie' ))
>     Cheese( type not in ( 'stilton', 'brie' ))
>     Cheese( type memberOf $myCheeseTypeList )
>     Cheese( type not memberOf $myCheeseTypeList )
>
>     Mark
>
>     Ronald R. DiFrango wrote:
>>     Answered my own question:
>>
>>     MyObject (status == StatusConstants.MATCHED | ==
>>     StatusConstants.APPROVAL)
>>
>>     On 7/7/07, *Ronald R. DiFrango* < [EMAIL PROTECTED]
>>     <mailto:[EMAIL PROTECTED]>> wrote:
>>
>>         All,
>>
>>         If I remember correctly, in the 4.x version of Drools you
>>         were adding an or type syntax where you could compare a value
>>         against multiple values.  What is the new syntax for it?
>>
>>         I am looking to do something logically like:
>>
>>         MyObject (status in ("Open" or "Matched")
>>
>>         Ron
>>
>>
>>     ------------------------------------------------------------------------
>>
>>     _______________________________________________
>>     rules-users mailing list
>>
>>     rules-users@lists.jboss.org <mailto:rules-users@lists.jboss.org>
>>     https://lists.jboss.org/mailman/listinfo/rules-users
>>      <https://lists.jboss.org/mailman/listinfo/rules-users>
>>      
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20070708/409cb25d/attachment-0001.html

------------------------------

Message: 4
Date: Sun, 8 Jul 2007 20:19:13 -0400
From: "Ronald R. DiFrango" <[EMAIL PROTECTED]>
Subject: [rules-users] Re: More JBoss Rules IDE 4.x upgrade Woes
To: "Rules Users List" <rules-users@lists.jboss.org>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

All,

OK, a new project cleared up the RETE view.  I will say the problem still
does exist where the project does not work properly unless I import the JDT
compiler.

Ron

On 7/8/07, Ronald R. DiFrango <[EMAIL PROTECTED]> wrote:
>
> All
>
> I have to that upgrading a 3.0.x JBoss rules project to a 4.0.x version is
> not the smoothest transition.
>
> First, I reported that the library path is not correct but I was able to
> work around this issue.
>
> Now, I found another feature/bug.  When I click on RETE view, I get the
> following exception:
>
> !ENTRY org.drools.eclipse 4 120 2007-07-08 17:54:09.181 !MESSAGE Internal
> error in Drools Plugin: !STACK 0 java.lang.Exception: Unable to parse
> rules to show RETE view! at
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source)
> at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
> ModalContext.java:113) !ENTRY org.drools.eclipse 4 120 2007-07-08 17:54:
> 09.259 !MESSAGE Internal error in Drools Plugin: !STACK 0
> java.lang.reflect.InvocationTargetException at
> org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
> ModalContext.java:113) Caused by: java.lang.Exception: Unable to parse
> rules to show RETE view! at
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source)
> ... 2 more Root exception: java.lang.Exception: Unable to parse rules to
> show RETE view! at
> org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(Unknown Source)
> at org.drools.eclipse.editors.DRLRuleEditor2$3.run(Unknown Source) at
> org.eclipse.jface.operation.ModalContext$ModalContextThread.run(
> ModalContext.java:113)
>
>
> Do I really have to create a new Project and re-import everything over to
> it to get it to work properly?  Is there no upgrade feature that
> automatically upgrades my project like in most other Eclipse plugins?
>
> Thanks!
>
> Ron
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20070708/15eedb58/attachment-0001.html

------------------------------

Message: 5
Date: Mon, 9 Jul 2007 13:05:25 +0530
From: "Ashwini Joshi" <[EMAIL PROTECTED]>
Subject: [rules-users] matches operator
To: <rules-users@lists.jboss.org>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="us-ascii"

Hi,





Has anyone used the "matches" operator?

In our application we need to support startWith, endsWith operators for
string variable. I am thinking of using matches operator. But the 'matches'
operator is not working. I am trying the following code



rule "Hello World"

      when

            m : Message(message matches "Hello*")

      then

            System.out.println( "Hello World");

end







And the value set in the message is "Hello World". But it is not going into
the then clause.



If anyone has already used matches operator I would like to know how we can
use it for startswith, endsWith. How do we specify the regular expression?
Can we use "*"





Thanks,

Ashwini


DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20070709/d9bbcbc8/attachment.html

------------------------------

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 8, Issue 45
******************************************


<<winmail.dat>>

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to