You can do this. Keep in mind that the DSL engine will try to match each dsl
mapping entry into the LHS of the rule, one by one, in the order they are
declared in the mapping file. This means you can have one mapping that
substitutes the word "and" for a comma, and so on. It may take some cle
You must escape ( ...
[condition][]\(=(
But I'm not sure it will work, because expansion is doing nothing... I
mean, text before and after expansion is the same and the system was
designed to check for changes...
Do you need to have ( alone in a line? Can't you use a more textual
representa
HI all,
We've got an application that has the need to deploy dynamically
generated drl periodically. The drl is regenerated from a set of
database tables whenever a change is made to the tables. After running
through the generation and package building we eventually get an out of
memory error for
This doesn't work. :(
Acutally I am using the eclipse plugin and the DSL viewer shows that
the source code looks fine. The code I put in my first email was taken
from the DSL viewer.
but when I add the three lines:
[condition][](=(
[condition][])=)
[condition][]or=or
The DSL viewer refuses to w
Thanks for your reply. Yes, I am using a DSL. So what you mean is I
need to add 3 mappings in DSL like the following:
( mapped to (
) mapped to )
or mapped to or
right? I'll try that.
Thanks a lot!
On 8/8/08, Edson Tirelli <[EMAIL PROTECTED]> wrote:
>
>The error message indicates you are using
I suspect you may not have read the documentation.
Take a look at the "from" keyword.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BINET
JEAN-BAPTISTE
Sent: 08 August 2008 16:01
To: rules-users@lists.jboss.org
S
Hello,
I have a DRL file in which I have a global variable representing a DAO.
So, I succeed in writting a rule which uses this DAO to run a SQL query
on the database from the RHS part.
But now, I would like to use my DAO in the LHS, I mean I want to fire my
rule only if a condition is ok on the r
The error message indicates you are using DSL and the problem is not in
the DRL, but in DSL.
DSL requires every single line to be "matches" (or expanded), so if you
have a line with a single ( and nothing more, either you have a mapping for
it, or you escape the line with ">".
Best way to
You will need to give more details than what you are doing like the
actual syntax of your rule. It looks like you are using a DSL, I would
suggest you look at the actual DRL that DSL is outputting, then if you
still have problems send that to the mailing list.
Mark
Yu Wang wrote:
Hi, I need h
Section "2.2. Why use a Rule Engine" in the documentation gives a wealth
of extra information that I forgot about first time round!
-Original Message-
From: Anstis, Michael (M.)
Sent: 08 August 2008 09:07
To: 'Rules Users List'
Subject: RE: [rules-users] Drools vs Business Logic
Well, I
Hi, I need help in making the "or" work. I have the following rule:
rule
when
(
or
Condition_clause_1
Condition_clause_2
)
then
Consequence_clause_1
end
-
It gives me the following compilation error:
org.drools.rule.InvalidRulePackage: [4] Unable to expand
I think you may write a litte compiler to generate this rule of rules. ;)
or just write 5 templates.
On 8/6/08, psentosa <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> This newbie has the following problem:
>
> I'd like to let rules-creator to input something arbitrary, and the
> corresponding rule
Outside of the WM. There are a number of rules in this decision table, but
they all look just like this one. The way this works is that if it matches
any of these rules, then it's an approved request.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anstis
Hi,
I have the following questions:
if I'd like to define a quite complex function, which uses both: my own
classes (as parameter, and for use within the function) and some external
library, i.e. commongs-lang-2.2.jar (should also be used within the
function), should I put them all as several jar
Well, IMO, common sense suggests highly specialised hand crafted code
optimised to a particular problem domain *should* be faster than a
generic algorithm (taking this further why not dump the high level
languages all together and opt for C++ or assembler, if you really
really want you squeeze perf
I think you might need to post more of your source if possible.
Where are you setting PoolInfo.daysBeforeSummons to 5, outside WM and
before fireAllRules or within the RHS of another rule?
Thanks,
Mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Heh
Hi ,
Firstly I would like to apologize for sending the same question to both the
mailing lists and sending it multiple number of times. I assure you , it
shall not happen again .
I am using version 4.0.4 of drools . I have a basic question :
If we compare a rule engine to code written within t
17 matches
Mail list logo