Hi,
is there a syntax to capture the match(es) from a regular expression
inside a "matches" condition in a when statement, similar to
Matcher.group(int) in Java's regexps or $1, $2, $3 in Perl work?
Thanks.
- Godmar
___
rules-users mailing list
rules-
I got the BRMS working on Tomcat 6.0.13 but I still can't get Drools
compiler to work under Tomcat 6.0.13/Axis2 1.3. Some sort of Classloader
issue under Axis2 1.3.
Drools BRMS on Tomcat 6
1. Copy the following jars from the JBoss Web server lib directory into
the Tomcat lib:
commons-beanutils.ja
when a condition match call statoNodo.variabiliInOR() that add in to the
list the first arg
the action function add the list in the azioe with the method
azione.setAzione("pio",lista);
My list result is :
Pisa
Cagliari
Pisa
Cagliari
package org.drools.examples.decisiontable;
#generated from
Raffaele,
perhaps you can describe your usecase for these rules ?
ekke
Raffaele Viola wrote:
>
> How can I declare a variable not global but local to every rules
>
> Thanks
> Raffo
>
> -- Forwarded message --
> From: Raffaele Viola <[EMAIL PROTECTED]>
> Date: 21-set-2007 19.51
I'm just testing the BRMS
environment:
Eclipse 3.3
java.version=1.5.0_07
Mac OSX 10.4.10
installed servers in Eclipse WTP:
Tomcat 5.5.20
Tomcat 6.0.14
JBoss-4.2.1.GA
Imported the BMRS.war 4.0.1 into eclipse
Run on JBoss 4.2.1: no problems
Run on Tomcat 5.5.20 or 6.0.14 causes:
java.lang.NoClass
Maybe each row needs it's own list? I suppose that may require a separate RHS
column for each row.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
How can I declare a variable not global but local to every rules
Thanks
Raffo
-- Forwarded message --
From: Raffaele Viola <[EMAIL PROTECTED]>
Date: 21-set-2007 19.51
Subject: Re: [rules-users] assertion of object
To: Rules Users List
No,
the problem is that if I assert an obje
No,
the problem is that if I assert an object ArrayList lista and in the
Condition i add a string using $param
at the end of iteration I have an array with every params in the column but
I want only the param in the row of my action
Thanks
Raffo
2007/9/21, Scott Reed <[EMAIL PROTECTED]>:
>
> ma
maybe: insert( new MyObject( x,y,z ) );
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
ok thanks ... i solved my problem using
eval(statoNodo.variabiliInOR("$param"));
the function variabiliInOR returns a boolean variable
Regards
Raffo
2007/9/21, Scott Reed <[EMAIL PROTECTED]>:
>
> Ok, my apologies for not reading carefully. Now I see you are working from
> a decision table.
> My a
Hi all,
how can I assert an object to the rules engine and be sure that for each
rule fired it use s a new istance of my object??
Thanks
Raffo
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
I made a mistake in my previous message. The LHS is the "when" part of the rule.
Also, it appears you may have misunderstood the syntax of the LHS where something like X( z == y )
is not a call to a function, but a question of fact to be interpreted as "there is an instance of
class X with field
Ok, my apologies for not reading carefully. Now I see you are working from a
decision table.
My advice is to try your rules using DRL first to be sure you understand the syntax and the
limitations and then work out the decision table version.
___
rule
1) I do not think you can use functions on the LHS (the "then" part).
2) Even if it were allowed, I don't see a return type for the controllo(String
a).
Maybe if you explained what the rule was supposed to be doing we could be more
help.
___
rules-use
Hi All
Adance thanks,Can some please help me i'm trying to
load drl files when i start my program or if any
change occured in drl file need to load drl files into
rulebase.
private RuleBase loadRules() throws Exception {
Reader source = null;
PackageBuilder builde
Using the BRMS Business Rule Asset screen, I've created a new rule:
rule "Premium Rule"
dialect "mvel"
when
Policy( premium > "50.00" && <= "500.00" )
then
Policy fact0 = new Policy();
fact0.setStatus( 13 );
insertLogical( fact0 );
end
When I try to va
Hi all,
can some one help me? I don't understand why this drl
package org.drools.examples.decisiontable;
#generated from Decision Table
import com.RuleEngine.ControlloreNodo.*;
import com.RuleEngine.ControlloreNodo.OggettiControllo.Azione;
import com.RuleEngine.ControlloreNodo.OggettiStato.St
marimuthu,
Drools allows to access Hibernate Named Queries with "from"
look at the documentation ( 6.3.3 globals and 6.5.2.8 From)
perhaps this gives you some hints
ekke
[EMAIL PROTECTED] schrieb:
Hi,
My application require to implement business rules with SQL query.
How can i implement bus
Hi,
I have seen the ticket in JIRA. But to be sure to be understood, I
give an other example.
I would find a way to write this DRL code :
Person( age ( (> 30 && < 40) || (> 20 && < 25) ),name == 'DOE' )
In DSL code like this :
There is a Person with
((- age is less than 40
- age
Hi,
My application require to implement business rules with SQL query. How
can i implement business rule wjhich has SQL query?
Is their any option to integrate with hibernate?
Regards
Marimuthu
The information contained in this electronic message and any attachments
to this message
20 matches
Mail list logo