Also - I just confirmed that getFoo1AsBoolean() returns null. I appreciate
that as part of Drools null protection I don't get an error on that ...
however, I am curious why the rest of the expression (the right hand side of
the &&) is even evaluated.
--
View this message in context:
http://drool
Drools 5.3
Given the following rule:
rule "EasyApp Family Term Rider Max Value"
dialect "java"
#ruleflow-group "values-group"
when
$ea : EasyApp(
getFoo1AsBoolean()==true
&& (getFoo2AsInt() > 25000
Mark: I know what Jira is ... but I don't know what you mean by a pull
request ... I also don't have it set up as a JUnit test.
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-in-MVEL-execution-optimization-tp3633440p3635295.html
Sent from the Drools: User forum mailing
OK - it appears to be a 5.2 bug. I swapped out for the 5.3 jars and all
three rules are evaluating.
However, even in 5.3 the utility method is executed twice for each rule.
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-in-MVEL-execution-optimization-tp3633440p3635237.
Please refer to my post at 9:52am this morning. Why is it only testing the
first rule?
To reiterate ... when I use MVEL syntactic sugar in my example code, only
the first rule is evaluated. When I use straight Java syntax, all three
rules are evaluated. Clearly there is a problem.
--
View this
This is even more interesting.
MVEL allows straight Java syntax (e.g. getField() rather than just field).
I can leave the dialect defaulting to MVEL, and as long as I use the Java
syntax in the rule it still works right (all three rules - no double call to
the utilityMethod). It is only with MVE
Its working with the Java dialect (all three rules), but it bails after the
first rule with MVEL dialect (see earlier post). The only change on my part
is the dialect.
--
View this message in context:
http://drools.46999.n3.nabble.com/Error-in-MVEL-execution-optimization-tp3633440p3635170.html
S
I'm running Drools 5.2.
Any idea why Drools is bailing after the first rule for me?
Here is my output when I change to Java dialect:
in utilMethod >asdf< >Value1< returns false
in utilMethod >asdf< >Value2< returns false
in utilMethod >asdf< >Value3< returns false
==>[ObjectInsertedEventImpl: g
Here is a very simple test. Note that utilMethod is called twice for the
first rule, but is never called for the other two rules. If you convert to
Java dialect then things execute as expected.
TestRules.drl:
#created on: Jan 5, 2012
package com.sample
import com.sample.TestUtility;
rule "Fir
I hardly got any viewers (and no responses) when I posted this just as "MVEL
Optimization" ... so I have changed the subject and re-posted (my apologies
if I just broke protocol).
I'm not sure how to explain this, other than it appears that MVEL is trying
to optimize the When conditions in my rul
I'm not sure how to explain this, other than it appears that MVEL is trying
to optimize the When conditions in my rules.
I have a utility class, Test, with a number of methods on it (including null
protected versions of Drools "in" and "matches"). Note that the valueInList
method can return nul
It appears that a work around is to test if the boolean value is equal to
true or false. The following seems to work:
$ea : EasyApp(getOwn_eaIsProposedInsuredIndAsBoolean() == false)
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Null-Pointer-Exception-org-mvel2-
I commented out the rule causing the null pointer error.
When it got to another null Boolean value (this time without negation) I got
another (different) null pointer exception:
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:104)
--
View this message in context:
Here is the stack trace
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at
org.drools.reteoo.SingleLeftTupleSinkAdapter.propagateAssertLeftTuple(SingleLeftTupleSinkAdapter.java:72)
at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:156)
at
org.d
Thanks Mark
Every time I try to run verifier I get an out of memory error ... even when
I just feed it a single very simple rule file.
Ron
--
View this message in context:
http://drools.46999.n3.nabble.com/Cross-Reference-Utility-tp3583733p3585904.html
Sent from the Drools: User forum mailing l
Is there a cross reference utility, that will allow me to easily find the
rules which reference a specific class and/or specific attribute? I'm
hoping for something like the standard Java 'references' report.
I'm guessing (based on what I've read) that the Drools compiler generates a
bunch of Jav
Note - I typed RHS by accident in the first posting ... clearly I am talking
about the LHS
--
View this message in context:
http://drools.46999.n3.nabble.com/Strange-error-in-DRL-compiler-tp3582691p3582802.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_
I can't get it to accept this LHS at all:
when
$ea : EasyApp((priBen_xmPartyList.size() !=
priBen_xmRelationList.size())
|| (priBen_xmPartyList.size() !=
priBen_eaRelationshipNameList.size()))
Description Resource
Thomas:
Yes, that explains why you implemented it as you did. I guess we'll just
have to agree to disagree.
It appears possible to replace the Expander when bringing up the system in
Java ... is it possible to replace the Expander used by the Eclipse plug-in?
Thanks,
Ron
--
View this messag
The following RHS is valid:
when
$ea : EasyApp(agt_eaList.size < 1)
The following RHS is not valid:
when
$ea : EasyApp(agt_eaList.size < 1 || agt_eaList.size > 3)
I have to do this to make the RHS valid:
when
$ea : EasyApp(a
JBoss Developer Studio
The following line in a DRL results in a NullPointerException of unknown
location
EasyApp(eaPremiumMode not in ("A", "S", "Q", "ABC", "SS))
Note that the last string on the line is not closed. The eclipse plug-in
didn't show the problem clearly (by turning subsequent line
Personally - I would rather get an error when I make a mistake (e.g. do not
write the DSL correctly) than get get an error for writing perfectly valid
code. Eclipse does support a DSL expansion window which allows you to find
issues like misspellings. The current approach requires a total commitm
Laune
I was hoping that DSL was like a regex-based macro-substitution system ...
expanding only where it found matches. I don't believe this is an RHS vs
LHS issue ... the question is whether using DSL for one particular situation
should require you to use DSL for everything.
--
View this messag
I see that essentially the same question was asked right before I asked this
one.
I was expecting that DSL would translate only where there were DSL
translations available and leave the rest untouched. I did not expect it to
be an error if no expansion was available (nor do I understand why that
Thanks, Thomas
For some reason my mind went to 'PID' when I saw process id.
Here's a follow-up. When I define an RF I set the Package, the Name and the
Id. If I set the Package to com.a.b.c and I want the Name to be Foo, should
I set the Id to be Foo, to be com.a.b.c.Foo, or is it entirely arbi
Hi Laune
I am interested in the code snippet you posted
>> for( Rule rule: knowledgePackage.getRules() ){
>> String ruleName = rule.getName();
>> org.drools.rule.Rule realRule =
>> (org.drools.rule.Rule)
>> ((KnowledgePackageImp)knowledgePackage).getRule( ruleName );
>> String
I am sure this must be a case of RTFM, but please tell me which FM and if
there is a section, in particular I should read.
I am running JBoss Designer Studio 4.1.1.GA. It allows me to create RF
files and comes with a number of Flow (or should I say jBPM) components, but
not all of them. Do I nee
I didn't get any feedback when I posted earlier today, so I went ahead and
implemented what I thought would work ... and I figured I should share it
here since it seems to be working pretty well.
I created a Rule Flow as follows:
A Rule-Flow-Group that validates the arrays. Unfortunately I som
As an alternative - can I use ruleflow-group without using .rf files? Can I
put the regular expression evaluations in one rule-flow group and the
semantic evaluations in a different rule-flow group, and then control the
ruleflow-group activations programatically?
If this is doable - is it a bette
The issue I have been struggling with is ordering rule evaluation ... which I
realize violates one of the theoretical underpinnings of a rules system. I
receive all String data. I wanted to test if the data was well formed (via
regular expressions) prior to testing the semantic values stored in t
Thank you Thomas ... I understand what you are saying and appreciate the
explanation (hopefully it will reduce the number of future questions I
have). I guess I was looking for an 'evaluation-group' and confused it with
the 'activation-group'.
Please do not take offense at this - it is important
Thanks for your quick response, but I am still confused.
An activation-group assures that only one rule in the group will fire (an
XOR group)
Salience controls the order of evaluation
The regular expression test has the higher salience and will trigger if it
is a bad number ... so why is the oth
Expert 5.2.Final
My data comes to me as all strings, but I sometimes need to convert some
fields into integers in order to test their value. I wanted to avoid
conversion errors, so I combined rules into an activation-group and used
salience to control the order. However, at runtime I am getting
I agree that I jumped in on an effort to define a requirement in terms of a
solution ... however, people generally understand else and otherwise, so
there is some justification in saying you want something to work like them.
I don't care what the underlying mechanism is, but as it stands now we ha
Here's what I'm coming up with on my own.
I have a dozen PoJo's for my server record structure, and I am subclassing
them all off of an abstract class that has:
/private HashSet modified = new HashSet();
private boolean allFields = false;
public boolean fieldWasModified(String name)
Please consider the possibility of
When
Then
When
Then
Else
--
View this message in context:
http://drools.46999.n3.nabble.com/else-in-rule-tp3264337p3562187.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users
I thought I should clarify something. I am not looking for Drools to deal
with such UI-specific issues as enabling and disabling fields, what screen
to show next, etc.
Rather, we are developing a rich set of rules on the server to validate
fully populated data structures that we get from multiple
I am a complete newbie, but have seen several things written about using
Apache Camel for integration in situations similar to those you describe.
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Drools-integration-common-practice-tp3561614p3562110.html
Sent from the
I am running Ubuntu Linux 10.04 with the latest eclipse. I followed the
directions and the eclipse project would not build.
--
View this message in context:
http://drools.46999.n3.nabble.com/Off-to-a-very-bad-start-please-help-tp3237300p3242528.html
Sent from the Drools: User forum mailing list
Well - we need to either fix the documentation, fix the install, or state
that Maven and m2eclipse are required. Leaving it the way it is will just
discourage people from using it.
--
View this message in context:
http://drools.46999.n3.nabble.com/Off-to-a-very-bad-start-please-help-tp3237300p32
Huzza!!
On Aug 9, 2011 11:46 AM, "fluxxion [via Drools]" <
ml-node+3239400-1218296646-420...@n3.nabble.com> wrote:
>
>
> Updated the build path in the project properties to include that resources
> folder, the one with the drl's, and it runs.
>
> ___
> If
The file is just in a different place. I think exampe was written expectin
an ant script to create a jar with specific layout.
On Aug 9, 2011 11:17 AM, "fluxxion [via Drools]" <
ml-node+3239304-408653169-420...@n3.nabble.com> wrote:
>
>
> How would the build path and dependencies change when its a
I wasn't clear. The resource files copied over as well as the Java files.
However, the resources (and subdirectories) do not show up at the outer
level, as they do on the imported project.
http://drools.46999.n3.nabble.com/file/n3237310/DroolsProblem.png
--
View this message in context:
http:/
I downloaded droosljbpm-tools-distribution-5.2.0.Final and installed the
plugins in eclipse.
I downloaded droolsjbpm-integration-distribution-5.2.0.Final and imported
the example project into eclipse (Helios) per instructions in the
ReadMeDroolsjbpmintegration.txt file. I used the first
mechanism
44 matches
Mail list logo