Hi isabelle,
When I said instance class, I was meaning your instance source code ;)
Regards
On 9/28/07, Isabelle Hupont <[EMAIL PROTECTED]> wrote:
>
>
> Hi Fernando!
>
> Mi Instance class is the Weka class I attach
> Thanks for your attention.
> Isabelle.
> http://www.nabble.com/file/p129354
Sorry!! I mixed the .class and. java files!! ;)
Here is the source code. I also paste the code I am using to read the rule
package:
public RuleBase readRulePackage() throws PersistenceException{
// Reads a set of rules from XML file
try {
Hi All,
I am using drool to validate my business objects. I have a Business
object like this
LineItem
String ID
String parentId
I get 5 LineItems in a row and each line item has ID and a Parent ID, I
will have to check
if(parented of Any LineItem ! = ID of any LineITem)
I
No 30 is not correct, I want if 1 lineItem.parentId does not equals to
any of the LineItem.Id throw one exception.
Thanks
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anstis,
Michael (M.)
Sent: Friday, September 28, 2007 7:13 PM
To
Hi
I am using Drools 4.0.
First time I want to fire some specific rules from my rule file(in .xml format)
and then other rules for the second time.
I have defined agenda-group attribute for the rules as follows:
how can I execute specific rules using agenda group or is there any other
o
when
LineItem( $parent: parentId )
LineItem( id != $parent )
then
// raise the exception
end
2007/9/28, Bhattacharya, Sougata <[EMAIL PROTECTED]>:
>
>
>
> Hi All,
>
> I am using drool to validate my business objects. I have a Business
> object like this
>
> LineItem
>
>String ID
I am a bit surprised by your answer...
Let's consider :
rule "likes french cheese1"
when
FrenchCheese( smell == "good" )
then
System.out.println("likes french cheese1");
end
rule "likes french cheese2"
when
$person : Person ()
FrenchCheese( smell == "go
Hi,
How to check my property contains only numeric.
for ex
when
address(telphoneno=="??") telephone no should be numeric
then
s.o.p("error");
Basha
<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/m
You will need to use the exists keyword.
Without digging around for the manual you need to do something like:-
when
exists (
LineItem( $parent: parentId )
LineItem( id != $parent )
)
then
// raise the exception
end
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Oh yes this raises 30 exceptions if I have 6 Line Items
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Friday, September 28, 2007 6:53 PM
To: Rules Users List
Subject: Re: [rules-users] Please help
when
LineIte
Hi its working fine with the following rule.
when
$item:OrderableLineItemVO($parent: parentLineItemID)
exists (not (OrderableLineItemVO(lineItemID == $parent)))
then
exception;
end
thanks
From: [EMAIL PROTECTED]
[mailto
Krishnan,
You should not need decision tables and jsr94 jars if you are not using
such feature. Regarding the compiler, you must use either core (jdt) jar or
Janino jar... I'm not aware of any hard dependency on core itself... if it
exists, please open a jira for us to fix.
[]s
Ed
thanks a lot geoffrey.
-Krishnan.
On 9/28/07, Geoffrey De Smet <[EMAIL PROTECTED]> wrote:
>
> jxl is http://jexcelapi.sourceforge.net/
> it's not http://sourceforge.net/projects/jxl/
>
> so it's LGPM:
> http://sourceforge.net/projects/jexcelapi
>
> very confusing indeed :(
> but mvnrepository.com
Hi Isabelle,
I didn't paid enough attention to your rhs block :)
You are welcome and tks for your feedbak.
On 9/28/07, Isabelle Hupont <[EMAIL PROTECTED]> wrote:
>
>
> Hi Fernando!!
>
> I have fixed the problem... I didn't changed drools v3 modify(_i)
> statement
> by drools v4 update(-i).
> Now
Hmm I think we are just near to the solution,
I have the line item like this
1
1
2
1
Try using a regular expression.
Mark
Sikkandar Nawabjan wrote:
Hi,
How to check my property contains only numeric.
for ex
when
address(telphoneno=="??") telephone no should be numeric
then
s.o.p("error");
Basha
--
Hi again!
Christian Spurk wrote:
If your "telephoneno" variable is a String, you can use the "matches"
operator (cf. Drools manual section 6.5.2.1.1.3.1., "Matches
Operator"):
address(telephoneno matches "^\\d+$")
Sorry, I should have read the manual more thoroughly; you dont' need to
escap
I may be misinterpreting your message bellow, but the way I read it,
being sarcastic instead of explaining what is your problem will not make
people help you.
I think you need to read the manual, Rule language chapter. To raise only
one exception in case there is on or more matches, use the
Hi Basha!
Sikkandar Nawabjan wrote:
How to check my property contains only numeric.
for ex
when
address(telphoneno=="??") telephone no should be numeric
then
s.o.p("error");
If your "telephoneno" variable is a String, you can use the "matches"
operator (cf. Drools manual se
Is 30 correct, you are not clear. Did you want one exception for any number
of violations?
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bhattacharya,
Sougata
Sent: 28 September 2007 14:33
To: Rules Users List
Subject: RE: [rules-users] Please help
Oh yes this raise
Hi All,
I am using drool to validate my business objects. I have a Business
object like this
LineItem
String ID
String parentId
I get 5 LineItems in a row and each line item has ID and a Parent ID, I
will have to check
if(parented of Any LineItem ! = ID of any LineITem)
I
This is very strange. Let me explain the scenario and you can tell me if
we have something fundamentally wrong.
We have a class (Persister) that receives a lightweight object (VO) to
persist, the Persister does the following:
1. Starts a hibernate transaction
2. Creates hibernate
hi all,
In my application, I use simple drl file based rules and it is not a J2EE
application. Based on the dependencies
documentation
http://anonsvn.labs.jboss.com/labs/jbossrules/tags/4.0.1.14754GA/README_DEPENDENCIES.txt
, it seems I am in the compiler option
The only jars I am including are a
Hi,
I would like to execute specific rules from the rule file(.xml).
Find the rule file content below. There are three rules are available in
the xml file(Rule names: 1.Check_NotNullof_rfqId ,
2.Check_NotNullof_partId and 3.validateFullName)
First time we are trying to execute 1.Check_NotN
Hello,
Im having trouble with the BRMS front end throwing an:
Exception in thread "main" java.lang.ClassCastException: java.util.HashSet
cannot be cast to java.util.List
at org.drools.rule.Package.readExternal(Package.java:172)
This is what I have set up:
jbossweb-1.0.1.GA
drools-
Hi Fernando!!
I have fixed the problem... I didn't changed drools v3 modify(_i) statement
by drools v4 update(-i).
Now everything works well!
Thanks a lot for your attention.
Isabelle Hupont wrote:
>
> Sorry!! I mixed the .class and. java files!! ;)
> Here is the source code. I also paste th
You have a valid point. I was thinking in a more general situation where
the class returned by the method may be completely unrelated to the class
declared in the rule. Raising a compile time error would help preventing the
user writing rules that will never match.
Maybe we can mix both app
I've come across a few serious usability problems whilst using the import
and archiving packages functionality in the BRMS. However, before raising a
JIRA, I thought I'd ask the community if these are expected behaviours, or
legitimate bugs.
1. Archiving a package only removes the package definiti
There has to be something I do not understand about using rules.
Take this simple class and rules and I don't understand the output.
First, when the rule constructor is executed it appears as though only the
value 1 was put into the map, then it runs rule test1 and then it sees only
values 2 a
each asset is currently treated indivually so a package is itself an
asset like a rule is an asset. Whats needed here is an option, when
archiving packages, that asks if you would like to archive its
configured rules.
patch welcome :)
Mark
Shahad Ahmed wrote:
I've come across a few serious
30 matches
Mail list logo