Hi.
I've currently evaluating Drools 4.0 for a project of ours and I'm
running into some problems.
I have a rule which looks like this:
rule W250.42 Editable
when
DTO(w250_4_1.value in
(0,1,6,7,A,C,D,G,L,M,P,Q,S,V,Z) )
then
System.out.println
Hi,
I have a problem with a rule which uses a != field
constraint. The following code illustrates the
problem.
import org.drools.*;
import org.drools.compiler.*;
import org.drools.rule.Package;
import java.io.*;
public class DroolsTest {
private RuleBaserules;
private
Hi,
This is a very newbie question. I have a Person object which contains a
collection named interests. This collection will contain the activities that
the Person is interested in. If the person is interested in Golf, Soccer and
Baseball, then this collection will contain these 3 strings. I
Jesse/Fernando/anybody
Do you know if this problem has been resolved - I am getting the same
problem from a web service running on BEA weblogic
Regards, Steve Barfield, Developer
Application Services
FUJITSU SERVICES
Cavendish Road, Stevenage, Herts, SG1 2DY
* +44 (0) 870 234 8197
But why the expand methode in DrlParser.parse(final String source, final
Reader dsl) can't build the expander with an inputStreamReader on a used
ressource ?
And If I use two FileReader on the same dsl file it work's
example :
dslReader = new
globals are automatically in injected you don't need the getGlobal at
all from within a consequence. However if you are in java land you you
may need to read a global value and we can't inject it there, so thats
the reason for this.
Mark
hypnosat7 wrote:
Hi,
Is it important to use
using 'or' like that results in subrule generation, i.e. rules will fire
for all matching combinatinos - this is not what people normally want.
you can also do it using field constraints
person : (Person (interests contains Golf || contains Soccer)
Jaikiran Pai wrote:
Hi,
This is a very
yes you can use a variable, and no you cannot dynamically generate rules
in an eval.
Mark
Arsalan S. Zaidi wrote:
Hi.
Two questions:
1. Is it possible to use a variable in a IN(...) ?
E.g.
when
$someVar : SomeObj()
(pqr in (abc, $someVar))
then
...
Hi Steven - can you provide the background on this? (I didn't see any other
info - perhaps gmail has gone nuts or my brain has, I have been on
holidays).
Michael.
On 8/13/07, Barfield Steve [EMAIL PROTECTED] wrote:
Jesse/Fernando/anybody
Do you know if this problem has been resolved – I
Hi Mark.
Thanks for the quick reply! :-)
About question no. 2, is there anyway to do something like that with
Drools?
Regards,
--Arsalan
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: 13 August 2007 18:03
To:
This is not Drools-related but rather a generic Java problem.
You should read the Java API of the Reader class.
A reader remembers the last position it used to read out data.
So if you try to use the same reader twice, the second time it will be
empty,
as it will already be at the end of the
I need the mapping for a wizard.
In fact if I execute the methode below before the
addPackageFromDrl(drlReader, dslReader) I have problems.
private DSLMapping generateDslMapping(Reader dslReader)
{
DSLMappingFile dslMappingFile = new DSLMappingFile();
yes, you can do it in a consequence or from java land.
Mark
Arsalan S. Zaidi wrote:
Hi Mark.
Thanks for the quick reply! :-)
About question no. 2, is there anyway to do something like that with
Drools?
Regards,
--Arsalan
Thanks for the inputs, Mark.
I just modified the Helloworld example to try this out. I added a collection
to the Message class:
public static class Message {
public static final int HELLO = 0;
public static final int GOODBYE = 1;
private String
Considering that I have a set of rules that can be time consuming to assert is
there a way to separate them from other rules without having to resort to
multiple working memories?
I basically want to be able to assert facts and evalute a set of rules as fast
as I can before actually having the
Markus,
Can you plz open a JIRA for this?
Thank you,
Edson
2007/8/13, Markus Reitz [EMAIL PROTECTED]:
Hi,
I have a problem with a rule which uses a != field
constraint. The following code illustrates the
problem.
import org.drools.*;
import org.drools.compiler.*;
import
Jaikiran,
This is only supported in Drools 4.
In 3.0.x, you will have to use either a predicate or do what you were
doing, but note that as Mark mentioned, the OR CE will cause subrule
generation, meaning the rule will fire twice if both conditions are true.
[]s
Edson
2007/8/13,
This looks like an MVEL issue, since your expression is being converted
into an MVEL predicate. May I ask you please to open a JIRA for that bug?
Meanwhile, a workaround that shall work for you and may give you improved
perf is to split your pattern into 2 patterns using the from keyword:
You can use Agenda Filters or Agenda Groups I believe.
On 8/13/07, Yuri [EMAIL PROTECTED] wrote:
Considering that I have a set of rules that can be time consuming to assert is
there a way to separate them from other rules without having to resort to
multiple working memories?
I basically
Brian Sam-Bodden bsbodden at integrallis.com writes:
You can use Agenda Filters or Agenda Groups I believe.
Hi Brian,
afaik, agenda-groups just layers the rule activations so that it becomes easier
to manage their activations instead of resorting to managing saliences on
individual rules, but
Hi,
Can you plz open a JIRA for this?
http://jira.jboss.com/jira/browse/JBRULES-1079
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
___
rules-users mailing list
rules-users@lists.jboss.org
How about RuleFlows? If there is a work flow flavor to these groups
of Rules then I think a Rule Flow could help. I don't know how the
underlying implementation works but I think that you will not have the
when parts of those Rules not active in the Flow be evaluated.
On 8/13/07, Yuri [EMAIL
Im having problems using the BRMS 4.0GA and BRMS 4.0 stand alone (v
1.0).
Things just crash without reason... importing models crash sometimes,
and trying to create LHS in business rules
got stall... not showing any option to add fact or whatever...
In standalone version I have this error
Michael,
Thanks for your reply. I havn't got the hang of adding to an existing
thread in this forum, I keep starting a new one.
The original post was by Jesse Stockall jstockall at embotics.com on Tue
Jul 17 08:55:23 EDT 2007
My problem seems to be the same as Jesse's, Fernando thought it
I think because the stream has reached the end once you load it the first
time. Get a fresh reader from a fresh stream and it should work.
On 8/13/07, hypnosat7 [EMAIL PROTECTED] wrote:
But why the expand methode in DrlParser.parse(final String source, final
Reader dsl) can't build the
Hi,
in a load intensive operation, if a pool of JDBC connections is exausted
the 'from' breaks. Ok, it should! (Not expecting magic :o) ) ,.. but I'm
concerned about the trace it generates.
The stack trace does not suggest the ground reality and is very abstract. Can
you have an enhacement to
The incoming building was initialized like this:
Building building = null;
FactHandle buildingFact = businessRuleSession.insert( building );
businessRuleSession.setFocus(validate delete or get building);
businessRuleSession.fireAllRules();
Can drools test for this null building?
What should the
27 matches
Mail list logo