Consider these rules:
rule kickOff
when
then
Inner square1 = new Inner( "inner", "4", "4" );
Outer namedSquare1 = new Outer( "4x4", square1 );
insert( namedSquare1 );
Inner square2 = new Inner( "inner", "5", "5" );
Outer namedSquare2 = new Outer( "5x5", null /* square2 */ );
Mike,
Thanks. I will submit one .
-
Ram
--
View this message in context:
http://drools.46999.n3.nabble.com/how-to-use-not-in-oparator-in-guided-decision-table-in-5-2-version-of-Guvnor-tp3865331p3866199.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
__
Dear Bhushan, the recommendations you got from your architect should be
intended as best practices, not as strict instructions. Indeed, it depends
on what kind of rules you are writing and their business logic.
I agree that functions and globals should not be abused, and that salience
and groups s
I understand that I cannot expect to catch NPE in my calling java program. I
am actually catching java.lang.Exception. I simply continued to call it an
NPE because that was the true issue. My issue can easily be broadened to
apply to any RuntimeException thrown from LHS.
--
View this message in
Hello All
I understand that Guvnor uses the PersistenceManager in JackRabbit to persist
data but I would like confirmation of how it works. Namely the following.
* What actions cause the PersistenceManager to persist data?
* When a back end java process connects to the Guvnor server
please ignore___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
It isn't thrown as a NPE, the trace says java.lang.RuntimeException.
-W
On 28 March 2012 22:42, scottleff wrote:
> No, the NPE is not thrown up to my java class that calls fireAllRules(),
> that
> is the problem. I'm hoping someone who has lots of experience with
> Exception Handing in LHS of D
Hi Vincent Legendre Thanks for you valuable reply. We had implemented new
technologies in our legacy project one of them is drools(separated our
business logic).We had implemented many rules and also used UPDATE in that.
But from client (Architect) we got strict instruction that we should not
used
No, the NPE is not thrown up to my java class that calls fireAllRules(), that
is the problem. I'm hoping someone who has lots of experience with
Exception Handing in LHS of Drools rules can chime in here and say whether
this is the default behavior for Drools. If not, what might be causing the
ex
But isn't the java.lang.runtimeException thrown up to the point where you
call fireAllrules() in your RulesEngine.java at line 318? Just catching NPE
is a little dodgy since you can't know what might happen.
-W
On 28 March 2012 18:35, scottleff wrote:
> During development of our Drools rule base
Quick summary of :
http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html#d0e5989
insert = inserts a new object in the working memory
update = tells the engine that an existing object in the working memory has
changed
Unexpected question from someone that "h
This is not possible in 5.2
In 5.4 you can use BRL fragments as columns (consequentially free-form DRL
too).
This is not an unreasonable expectation though, so please open a JIRA and
I'll endeavor to add as soon as possible (but not back-port to 5.2).
https://issues.jboss.org/browse/GUVNOR
With
I had successfully configured debugger when I had written normal rules.But
currently I have been writing rules in DSL and also trying to configure
debugger(in eclipse) but I haven't got any success yet.Please help me
--
View this message in context:
http://drools.46999.n3.nabble.com/I-am-writi
what is the exact difference between Insert and Update ?? I am little
confused here when to used insert and when to use update ??
and is it possible to retrieved updated object from working memory without
using *UPDATE* keyword
--
View this message in context:
http://drools.46999.n3.nabble.com/I
what is the exact difference between Insert and Update ?? I am little
confused here when to used insert and when to use update ??
and is it possible to retrieved updated object from working memory without
using *UPDATE* keyword
--
View this message in context:
http://drools.46999.n3.nabble.com/I
I had written many rules in my previous project and also successfully applied
it's (Drools) most of the features .One of them is extend feature.But
Currently I am writing rules using DSL but *I am not able to use extend
feature using DSL Always getting Exception like root points to NULL
expecting T
Hi,
how do we specify the condition field1 not in (A,B,C) in a guided decision
table in Guvnor 5.2?
I can use field1 in (A,B,C)
but no option to specify
not in (A,B,C)
if no other option within the guided decision table, I suppose I would have
to go the template route.
unfortunately, we have
MVEL compiles the string to it's own evaluation tree, it then
"evaluates" that tree at runtime so simulate runtime code. We do a
further optimisation for performance where after MVEL executes a
statement so many times, we'll JIT it to bytecode to get improved
execution performance.
Mark
On 26
During development of our Drools rule base I had a case where a rule compiled
fine, but at runtime a NPE is thrown by MVEL when applying the predicate
(LHS) because the Coverage.vehicleSupplement attribute was NULL. I had
expected the NPE to be returned to my calling java program so that my
try/ca
The view source for the package shows *all* DRL including imports, globals,
rules etc. The view source for an individual asset just shows the rule (or
whatever) DRL.
You don't normally need to worry that the decision table source does not
show an import - unless you are retrieving the source throu
Thanks Manstis,It is working fine when i click ViewSource for package,the
import statements which I added are displaying
import java.util.List;...
But,When I navigate to decisontable(rule),and click ViewSource,the import
statements are not displaying.I need to add import statements in that
rule(g
Sure.
You need to add the import statement to the package (in which the Web
Guided Decision Table asset resides) definition.
Click on the package (where in the LHS "Knowledge Bases" tree view), click
on "Edit" tab and add the required import in the top section.
On 28 March 2012 13:46, srinivasas
Hi,
We have a system which streams data containing geospatial information that
represents aircraft into a PostGIS database where we also store geographic
areas of interest. We would like to create, with Drools, rules which
utilise the PostGIS geospatial functions as part of the Rules that we
deve
Hi,
Is it possible to write Import Statement like import java.util.List in
WebGuided DecisonTable.If it is possible,can you suggest me,how to write
that import statement.Please
Thanks
Sanda
--
View this message in context:
http://drools.46999.n3.nabble.com/Import-statement-in-WebGuided-DecisonT
24 matches
Mail list logo