This is *the* use case for "auto-focus" rule attribute with
agenda-groups. Take a look at it in the manual.
Edson
2010/3/11 H.C.
>
> I have a number of business rules structured into ruleflow groups and a
> ruleflow to determine the order of execution of these groups. At the same
> time,
I have a number of business rules structured into ruleflow groups and a
ruleflow to determine the order of execution of these groups. At the same
time, I have a number of maintenance and utility rules that do side tasks
such as maintain counts or summations, detect error conditions etc. These
util
I am using drools marshalling for persistence and am getting an OOME with my
simple rule flow. I have a custom CommandService that persists at the end of
each execution. (I am not using JPA :-( ).
In the rule flow I have a split that checks for the non-existence of a
simple pojo using "not Valida
I have changed the default table and column names that were causing issues.
https://jira.jboss.org/jira/browse/JBRULES-2448
If there are additional issues, please add a comment on this JIRA.
Kris
Quoting wytten :
>
> The changes I made for Oracle were:
> 1. Add ojdbc5 11.1.0.7.0 to classpath
Does anybody have any experience in resolving this:
Some background: I am trying to retract a fact and before doing that, I checked
the object and make sure it is not null. But still, I got null pointer
exceptions.
A previous developer working with me had posted the problem in Jan 2009.
Apparent
Hi All,
I have aother question on drools.
There can le level1 to level6 present in a rule and we need to pick always
the highest level rule which satisfied list price and discount comdition.
Following code is giving me expected results but do we have any better way
to implement the same. Can I a
I should point out that this is only a problem when overriding operators.
But I won't, at least here, go into the other nasty hacks I have to do to
get around the non-polymorphic ValueType systems. I'm assuming that that
design is there for performance reasons (ie, to eliminate the need for
inst
That may be how its supposed to work, but it does not.
PackageBuilderConfiguration#buildEvaluatorRegistry selects properties from
'chainedProperties' from the two collections of properties -- the drools
default and the scala extensions -- into a single map. It then adds the
evaluators from that co
Thanks Enda.Yes, I read carefully the docs and understand that eval expected a
boolena expression.I succesfully change the rule to :
rule "Sumatoria de lineas detalle vs Header" salience 10 when Number(
$total : doubleValue) from accumulate( Map(this["_TYPE_"] == "D",
That I don't know, sorry! Maybe have a look at the drools JIRA page, see if
the issue has been discussed?
On Thu, Mar 11, 2010 at 3:10 PM, cwolfinger wrote:
>
> Yes. But the collection I am testing has Integer objects it is the object
> of
> the comparison for containment that is an int primitive
Yes. But the collection I am testing has Integer objects it is the object of
the comparison for containment that is an int primitive. So my thoughts are
if this would never work unless I use an eval then why does the rules parser
allow the creation of condition that is invalid?
--
View this mess
Hi Yamil,
'eval()' expects a primitive boolean value as a result of the expression.
You may need to look into creating a custom accumulate function that can
accept a string and do the conversion in java. Have a look at section
6.5.2.10.1 Accumulate Function in the Drools documentation:
http://dow
Barry,
Any user registered evaluators should override the default ones, not the
other way around. How are you registering your implementations?
Edson
2010/3/11 Barry Kaplan
>
> As part of my drools-scala project I am implementing evalators for scala
> collections. This means that the
I rewrote as :
rule "Sumatoria de lineas detalle vs Header" salience 10 when Number(
$total : doubleValue) from accumulate( Map(this["_TYPE_"] == "D",
$monto : this["MONTO"]),
sum(eval(toDouble($monto $map : Map(this["_TYPE_"] == "H",
Hi Gerret,
I did as u have stated to creating a mapping file for the tables name and
all the tables was succeffuly created except for the SessionInfo table. The
error was because the create table script contains a value of bit which is
not recognaized by oracle. How can I fix this issue? Below
Hello,
I still have a problem loading facts using XStream. The last line of the
following code triggers a
com.thoughtworks.xstream.mapper.CannotResolveClassException.
// load up the knowledge base
KnowledgeBase kbase = readKnowledgeBase();
StatelessKnowledge
My proposal:
Insert a List of your root facts. A low-salience rule matching this
List cleans up the remains of the previous root processing and plucks
off N Root objects from the List and inserts them.
-W
2010/3/11 Ryan Fitzgerald
> Hi,
>
> In our application, we want to process a large amou
Hi Ryan,
How many rule files / flows are we talking about? Is there one "Master" (for
want of a better word) flow that controls the entire adjudication process?
If so could you have a first step that inserts one fact from a list, moves
on to the adjudication process, then loops back until there ar
Hi,
In our application, we want to process a large amount of facts. However, to
avoid an overload on memory and drools, we would like to process the facts in
batches.
Our rules are setup so that we only insert a small number of initial or "root"
facts, and then these facts trigger rules to fir
Hi,
'contains' works with collections. You can't put primitives into a
collection in java without wrapping them up in a class like Integer, Long,
Short, etc.
http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
Cheers,
Enda
On Wed, Mar 10, 2010 at 9:08 PM, cwolfinger wrote:
>
> H
Have you tried assigning the string to $monto and then performing the evel
within the sum?
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Yamil Bracho
Sent: 10 March 2010 19:38
To: Drools UserList
Subject: Re: [rules-users] Problems count and
21 matches
Mail list logo