Hi All,
Can anybody tell as to wat does the assert() method do in a DRL
file, like the way it is used in the below example. I am aware of
assertObject() method but not assert() method.
Thank you,
Mithun
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Hi Dirk,
I understand (but could be wrong!) that the ordering of patterns does
influence the performance of the rules. I assume that the RETE network
is created from top to bottom as the rules are parsed. Therefore more
restrictive constraints at the start of a rule will be parsed first and
hence
Hi Mithun,
Assert(), assertLogical(), modify() and retract() in DRL are implicit
functions to do the exact same as WorkingMemory's related members (much
like request and response in a JSP).
What's more there is an implicit drools global too that can be used to
access an instance of
I assume (from ...each thread will execute the rules...) your threads
have their own workingmemory and once you've loaded the 500 records you
call fireAllRules()?
If this is the case then the activations should be correct for the
subset of records asserted but this could differ to the results
How to use if else conditions in one [when] [then] condition in drools?
Eg: if(something){ do 1}
else {do 2}
I need to use only one [when] [then] condition. The requirement is like
that.
--
View this message in context:
For literal (alpha node) constraints, we test in the order they are
provided - testing stops after the first failure. For varible
constraints (beta nodes), depending on your compositeKeyDepth (1,2 or 3,
with 3 being default) we move the '==' operator(s) to the front and
index. Indexing of the
Simply identify the logic the else is trying to capture and write an
alternative rule to represent it.
Mark
Rajesh.Sachin10 wrote:
How to use if else conditions in one [when] [then] condition in drools?
Eg: if(something){ do 1}
else {do 2}
I need to use only one [when] [then]
Maybe there is a problem with it... can you please create a JIRA with a
sample test attached?
Thanks,
Edson
2007/5/31, Rajesh.Sachin10 [EMAIL PROTECTED]:
Yes... I created getter and setters for the boolean variable
Rahul Phadnis wrote:
Does your Fact object have the
Folks,
I have Rational Application Developer 7.0.0.2 , it uses Eclipse 3.2.2
Need to install JBoss rules Eclipse plugin v. 4
What is the best way to do it, and is it possible at all?
I tried this URL:
http://anonsvn.labs.jboss.com/labs/jbossrules/updates/drools-ide-update/
but it leads to
Works for me too.
I've got org.drools.eclipse_4.0.0.11754MR2.jar in C:\Program
Files\IBM\SDP70\plugins.
Cheers,
Mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: 31 May 2007 15:10
To: Rules Users List
Subject: Re: [rules-users]
Hi,
1) Can v use Java methods within the passed Java objects to do some
evaluations or calculations in LHS? Plz show an example.
2) Can v use it in RHS? (Example)
3) Can v call static Java methods written inside a Java class from RHS?
Plz reply A.F.A.P.
Jojan
--
View this message in context:
Thanks Mike Mark,
It helped!
Here is what I did:
1. Downloaded
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip
2. Stopped RAD 7.0
3. Unzipped it to temporary folder and copied:
\features\org.drools.eclipse.feature_4.0.0.11754MR2 -
Hi Jojan,
In 3.0.6 you can use Java zero-argument functions in LHS Return Value
predicates and operators (see the documentation). You can use any Java
in LHS eval statements (see the documentation). You can use any Java in
the RHS.
In 4.0.x this has been extended slightly to allow access to maps
someone want to add that info to the wiki?
Thanks
Mark
Anstis, Michael (M.) wrote:
Thanks for reminding me about the other steps I did!!!
I run JBRules v4.0.x against a 1.4 JRE out of RAD7 (with a 1.4 JVM
configured) but this wasn't deployed to WAS6.0 as it's a simple
standalone app' :-(
I
the engine is jdk1.4 - the brms and the agent we are just finishing off
is jdk1.5
Mark
Manukyan, Sergey wrote:
Thanks Mike Mark,
It helped!
Here is what I did:
1. Downloaded
http://download.jboss.org/jbossrules/release/4.0.0.11754MR2/jbossrules-4
.0.0.11754MR2-eclipse.zip
2. Stopped RAD
Great knews! Thanks everybody,
I put this info to
http://wiki.jboss.org/wiki/Wiki.jsp?page=RAD70EclipsePlugin4Installation
Instructions
there is a link to this page from
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRules
-Sergey
From:
I got the following exception when I tried to run the drl file rule.
org.drools.rule.InvalidRulePackage: unknown:13:37 mismatched token:
[EMAIL PROTECTED],307:308='',55,13:37]; expecting type ')'
unknown:13:81 Unexpected token ')'
at org.drools.rule.Package.checkValidity(Unknown Source)
Following is the Example taken form the following URL:
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/docs/3.0.1/html_single/index.html#d0e2144
But this rule is not working for me. If anyone know the logic behind the
rule, please explain me.
Example:
Imagine we have two
Rajesh,
See my previous e-mail, but just to complement, note that the equivalent
translation of your SQL query:
select * from Students s where exists (
select * from Modules m where m.student_name = s.name and m.score 40
)
To a rule is:
rule XXX
when
$s : Student( $name : name )
New to this maling list.
Any tutorial for
1. Deploy JBoss Rules to JBoss AS?
2. Start Web Based Visual Rule Editor.
3. Define a DSL.
4. Create rules.
5. Sample code to invoke rules.
Not have to be very detail. Just hight level steps are ok.
nope
Dou Hu wrote:
New to this maling list.
Any tutorial for
1. Deploy JBoss Rules to JBoss AS?
2. Start Web Based Visual Rule Editor.
3. Define a DSL.
4. Create rules.
5. Sample code to invoke rules.
Not have to be very detail. Just hight level steps are ok.
Thanks!
21 matches
Mail list logo