rules questions...
by Joel G. Rivera-González
Trying to figure out the new rule system...
but it doesnt work...
This is my rule:
package com.prtc.struts.rules
import com.prtc.db.MegaTransferObject
import java.util.ArrayList
import com.prtc.struts.Constants
rule "cancel_menu"
when
megaTO : MegaexistMegaTransferObject()
megaTO(other_EffectiveOrderTypeDsl != null) and
megaTO(other_EffectiveOrderTypeDsl == Constants.NEW_OPEN_ORDER_TYPE) and
megaTO(orders_FkOrderStatusId != null) and
megaTO(orders_FkOrderStatusId == Constants.PENDING_TO_BE_SUBMITTED_ORDER_STATUS)
then
System.out.println("Hello");
end
part of my code:
InputStreamReader ir = new InputStreamReader(RuleBuilderMgr.class.getClassLoader().getResourceAsStream(ruleDrl)); //the null pointer is from this line.
builder.addPackageFromDrl(ir);
this is the result:
7661 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compiling com.prtc.struts.rules.Rule_cancel_menu_0
7942 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compile com.prtc.struts.rules.Rule_cancel_menu_0
8062 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compiled com.prtc.struts.rules.Rule_cancel_menu_0
8062 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compiling com.prtc.struts.rules.Rule_cancel_menu_0ConsequenceInvoker
8072 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compile com.prtc.struts.rules.Rule_cancel_menu_0ConsequenceInvoker
8092 [main] DEBUG org.apache.commons.jci.compilers.JaninoJavaCompiler - compiled com.prtc.struts.rules.Rule_cancel_menu_0ConsequenceInvoker
8102 [main] FATAL com.prtc.struts.util.ConstructServiceAssuranceTreeMenu - Exception in ShowIspServiceAssuranceAction.execute --> java.lang.NullPointerException
8102 [main] FATAL com.prtc.struts.util.ConstructServiceAssuranceTreeMenu - java.lang.NullPointerException
at com.prtc.struts.util.ConstructServiceAssuranceTreeMenu.construct(ConstructServiceAssuranceTreeMenu.java:74)
at com.prtc.lc.rules.managers.RuleTester.test1(RuleTester.java:299)
at com.prtc.lc.rules.managers.RuleTester.main(RuleTester.java:54)
Joel G. Rivera-Gonzalez
PRT
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
17 years, 11 months
Is the maling list active?
by Felipe Piccolini
I have been notified about unsubscription to the mailing list and I
didnt make it...
Also received a subscription email to the rules-users/
dev(a)lists.jboss.org list all cool until now...
but I havent received any mail from anybody today (almost) so I
presume that the list is inactive?
Anyone can say something?... I cant hear you guys.... :)
Felipe Piccolini M.
felipe.piccolini(a)bluesoft.cl
17 years, 11 months
RE: [drools-user] Is the maling list active?
by Nebinger, David
Yo.
-----Original Message-----
From: Felipe Piccolini [mailto:felipe.piccolini@bluesoft.cl]
Sent: Friday, January 05, 2007 3:46 PM
To: rules-users(a)lists.jboss.org
Cc: user(a)drools.codehaus.org
Subject: [drools-user] Is the maling list active?
I have been notified about unsubscription to the mailing list and I didnt make it...
Also received a subscription email to the rules-users/ dev(a)lists.jboss.org list all cool until now...
but I havent received any mail from anybody today (almost) so I presume that the list is inactive?
Anyone can say something?... I cant hear you guys.... :)
Felipe Piccolini M.
<mailto:felipe.piccolini@bluesoft.cl> felipe.piccolini(a)bluesoft.cl
17 years, 11 months
[drools] Welcome to the new JBoss Rules Mailing list
by JBoss IT
Welcome to the new JBoss Rules Mailing list. We are moving our lists
to our own list server (lists.jboss.org); the web based list services
GMane and Nabble have also migrated with the new lists, maintaining
existing archives. This move was intended to be somewhat invisible, but
a problem with our process caused a number of "unsubscribe" messages to
be sent. If you are getting this welcome message, you are subscribed to
the new list.
The lists migrations are as follows:
announce(a)drools.codehaus.org -> rules-announce(a)lists.jboss.org
dev(a)drools.codehaus.org -> rules-dev(a)lists.jboss.org
user(a)drools.codehaus.org -> rules-users(a)lists.jboss.org
You can find detailed info for each mailing list here:
rules-announce : https://lists.jboss.org/mailman/listinfo/rules-announce
rules-dev : https://lists.jboss.org/mailman/listinfo/rules-dev
rules-users : https://lists.jboss.org/mailman/listinfo/rules-users
To post to this list, send your email to:
<list-name>@lists.jboss.org
General information about the mailing list is at:
https://lists.jboss.org/mailman/listinfo/<list-name>
If you ever want to unsubscribe or change your options (e.g., switch to
or from digest mode, change your password, etc.), visit your
subscription page at:
https://lists.jboss.org/mailman/options/rules-users/
You can also make such adjustments via email by sending a message to:
<list-name>-request(a)lists.jboss.org
With the word `help' in the subject or body (don't include the quotes),
and you will get back a message with instructions.
Thanks and welcome to the new list!
postmaster(a)lists.jboss.org
17 years, 11 months
Re: SV: [rules-users] subscribe
by Joel G. Rivera-González
i think the mailing list is migrating..
so basically we were all unsubscribe from one and subscribe to the new one !
(rules-users(a)lists.jboss.org)
Joel G. Rivera-Gonzalez
PRT
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
----- Original Message ----
From: Roger F. Gay <rogerfgay(a)yahoo.com>
To: Joel G. Rivera-González <el_pio(a)yahoo.com>; rules-users(a)lists.jboss.org
Sent: Friday, January 5, 2007 11:37:07 AM
Subject: SV: [rules-users] subscribe
I don't know what's going on. I just got a lot of
messages saying I'm unsubscribed from jboss email
discussions. I haven't initiated any action.
--- Joel G. Rivera-González <el_pio(a)yahoo.com> skrev:
>
> Joel G. Rivera-Gonzalez
> PRT
>
> "The first 90% of a project takes 90% of the time,
> the last 10% takes the other 90% of the time" -
> Murphy's Law
>
> ----- Original Message ----
> From: Joel G. Rivera-González <el_pio(a)yahoo.com>
> To: user(a)drools.codehaus.org
> Sent: Friday, January 5, 2007 9:35:58 AM
> Subject: Re: [drools-user] download alternative
>
> apparently is something with our network...
> i ask a friend to download and then he sent the file
> via email...
>
> :)
>
> but is very weird...always stop at the same %...no
> more..no less...
>
>
>
> Joel G. Rivera-Gonzalez
> PRT
>
> "The first 90% of a project takes 90% of the time,
> the last 10% takes the other 90% of the time" -
> Murphy's Law
>
> ----- Original Message ----
> From: Michael Neale <michael.neale(a)gmail.com>
> To: user(a)drools.codehaus.org
> Sent: Friday, January 5, 2007 8:01:56 AM
> Subject: Re: [drools-user] download alternative
>
> seems to be OK now - still having this
> problem?
>
> On 1/4/07, Joel G. Rivera-González
> <el_pio(a)yahoo.com> wrote:
>
> the jboss website always give me problems
> downloading things...
> it stock @ 60%...where else can i download drools 3
> from?
>
> Joel G. Rivera-Gonzalez
> PRT
>
> "The first 90% of a project takes 90% of the time,
> the last 10% takes the other 90% of the time" -
> Murphy's Law
>
>
>
>
>
>
>
>
>
>
>
>
>
> > _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
Correlation does not prove causality.
__________________________________________________
Använder du Yahoo!?
Är du trött på spam? Yahoo! E-post har det bästa spamskyddet som finns
http://se.mail.yahoo.com
17 years, 11 months
subscribe
by Joel G. Rivera-González
Joel G. Rivera-Gonzalez
PRT
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
----- Original Message ----
From: Joel G. Rivera-González <el_pio(a)yahoo.com>
To: user(a)drools.codehaus.org
Sent: Friday, January 5, 2007 9:35:58 AM
Subject: Re: [drools-user] download alternative
apparently is something with our network...
i ask a friend to download and then he sent the file via email...
:)
but is very weird...always stop at the same %...no more..no less...
Joel G. Rivera-Gonzalez
PRT
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
----- Original Message ----
From: Michael Neale <michael.neale(a)gmail.com>
To: user(a)drools.codehaus.org
Sent: Friday, January 5, 2007 8:01:56 AM
Subject: Re: [drools-user] download alternative
seems to be OK now - still having this
problem?
On 1/4/07, Joel G. Rivera-González <el_pio(a)yahoo.com> wrote:
the jboss website always give me problems downloading things...
it stock @ 60%...where else can i download drools 3 from?
Joel G. Rivera-Gonzalez
PRT
"The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time" - Murphy's Law
17 years, 11 months