Mehdi wrote:
hi,
I have a class Customer.java with class variable
allTradeAmounts and
I have two rules as follows:
rule rule 1
when
$c : Customer();
then
Should I open a task for decision table support, or for the error that
I get? Or both? ;)
Regards,
M.
On 26/11/2007, Fernando Meyer [EMAIL PROTECTED] wrote:
Hi Matija,
Drools ant doesn't support xls files yet, just brl, xml, rfm and dslr, could
you please open a ticket in jira and point
feature request.
Matija wrote:
Should I open a task for decision table support, or for the error that
I get? Or both? ;)
Regards,
M.
On 26/11/2007, Fernando Meyer [EMAIL PROTECTED] wrote:
Hi Matija,
Drools ant doesn't support xls files yet, just brl, xml, rfm and dslr, could
you please
I found the solution, the mvel in drools-jbrms library is indeed
mvel14-1.2.10.jar, but probably the compilation of the model wasn't done
with that version in the classpath?
Anyway, you need to compile the package org.acme.insurance.base in a
.jar file and upload it as the model in the BRMS
Done:
http://jira.jboss.com/jira/browse/JBRULES-1350
Regards,
M.
On 27/11/2007, Mark Proctor [EMAIL PROTECTED] wrote:
feature request.
Matija wrote:
Should I open a task for decision table support, or for the error that
I get? Or both? ;)
Regards,
M.
On 26/11/2007, Fernando
Hi,
some simple questions:
a) Is the Object included in the include statement ?
b) Is the Object inserted into the Working Memory ?
Do you have sample code, to show/reproduce the error ?
The mentioned JUnit Test should do the job.
thanks,
Darko Ivancan
On 26/11/2007 17:08, Mark Proctor
Well rules are executed in an atomic manner, thanks to the agenda.
So, either rule A (retract) or rule B (update) will be executed first.
Both retract and update will trigger a re-evaluation of the facts, thus
other rules will become valid/invalid.
Normally this should not lead to an error, as
Hi,
a) Is the Object included in the include statement ?
b) Is the Object inserted into the Working Memory ?
I beleive If the object is not imported and not asserted in the working memory
the rule may not activated. The problem for me occurred in the then part.
what i narrate is simple
Mark Proctor mproctor at codehaus.org writes:
At the moment no, we could expose a handler/even that allows the user to
add additional behaviour. For now your best way of doing this is to
augment the PackageBuilder with AOP.
snip
Mark,
Thank you for your help with my questions. We have
You are not telling the rule engine that GlucoseDecisionState has been
updated. You might also like to think about how the GlucoseDecisionState and
GlucoseDecision are related. If you have multiple instances of either class
the rules' behaviour might be unexpected (your RHS's suggest the two are
Hi there,
according to the online documentation globals are supported in the LHS
of a rule, yet requires a bit of care to use there.
But how do I use globals in the LHS? Is there any option to access a
globals variable directly like:
globals List myList
rule SomeRule
when
myList.size() == 2
Try this:
Global java.util.List myList
rule SomeOtherRule
when
myList(size==2);
then
...
end
Doe not seem to be a global problem, but rather a syntax issue.
hope this helps,
Darko Ivancan
On 27/11/2007 14:40, Michael Zimmermann wrote:
Hi there,
according to the online documentation
Hi Darko,
Global java.util.List myList
rule SomeOtherRule
when
myList(size==2);
then
...
end
Sorry, won't work. Unable to resolve object type 'diameters'. What works
though is:
rule abc
when
eval (diameters.size() == 2)
then
...
end
cu, Michael
Hmm,
Right.
Size is not a property (getSize), thus (size==2) does not work.
I'm not sure,but myList(size()==2) could work though.
Does it ?
darko
On 27/11/2007 15:09, Michael Zimmermann wrote:
Hi Darko,
Global java.util.List myList
rule SomeOtherRule
when
myList(size==2);
Darko IVANCAN wrote:
I'm not sure,but myList(size()==2) could work though.
Does it ?
No, doesn't work.
My interpreation so far:
a) globals are only possible in eval() statements
b) access to methods of global variables are not supported.
and possibly c) only properties of globals can be
I have a main flow that calls a subflow. In this subflow, I am
inserting a fact. In a rule in the main flow, it can not find this fact
in working memory. Is it possible to insert a fact in a subflow and
have it available to a parent flow?
Thanks!
___
Nevermind, I figured out my problem. It had more to do with the type of
join I was doing rather than flow/subflow.
Thanks anyways.
On Tue, 2007-11-27 at 12:02 -0500, Eric Miles wrote:
I have a main flow that calls a subflow. In this subflow, I am
inserting a fact. In a rule in the main flow,
Michael Zimmermann wrote:
Darko IVANCAN wrote:
I'm not sure,but myList(size()==2) could work though.
Does it ?
No, doesn't work.
My interpreation so far:
a) globals are only possible in eval() statements
they are valid in evals, inlined evals(previous called predicates),
Michael Zimmermann wrote:
Darko IVANCAN wrote:
I'm not sure,but myList(size()==2) could work though.
Does it ?
No, doesn't work.
My interpreation so far:
a) globals are only possible in eval() statements
b) access to methods of global variables are not supported.
and possibly c)
Hi,
In fact I had the same idea
when
java.util.List(size()==2) from myList;
then
...
But I didn't believe it'll be needed.
Thanks for the confirmation,
Darko Ivancan
On 27/11/2007 17:20, Mark Proctor wrote:
Darko IVANCAN wrote:
Hmm,
Right.
Size is not a property (getSize), thus (size==2)
Eric Miles wrote:
Nevermind, I figured out my problem. It had more to do with the type of
join I was doing rather than flow/subflow.
yes its all one working memory, no difference.
Thanks anyways.
On Tue, 2007-11-27 at 12:02 -0500, Eric Miles wrote:
I have a main flow that calls a
Couple questions about the JBRMS persistence layer. I have been trying to
figure out how to upgrade and incorporate the new 4.03 code into my
current app using 2.x and 3.x drools. After many months of off and on
playing with 4.x I want to see if I have some things straight.
1) JBRMS is
22 matches
Mail list logo