For a simplified scenario, it is easily possible to determine which rules
fire and which don't. This scenario assumes that you have
- a set of rules
- some static facts (which may be modified in the process or not)
- one transactional fact
and the simple sequence
kSession.insert( transFact );
Hi, you have several option then
You can use drools-verifier for a static analysis of your rule base. In a
nutshell, it converts the rules into "descriptor" facts and inserts them in
a drools sessions, where you can apply some meta-rules. Drools verifier
comes with a few consistency check rules, b
Hi Davide, your second guess is right. Sorry I should have said failed
condition.
I wanted to know which rule got fired and which one did not (because the
condition failed in when clause).
I wanted to know those, because we have requirement which asks for what are
the rules which have passed and
What do you mean by "failed rule"? It has several possible interpretations...
just to hint to some: a rule that throws an exception during its execution,
possibly through chaining? For that, you can attach custom error handlers.
Or, more likely, are you interested in the reason why a rule didn't f
If you need to keep track of changes in your WM database, a property change
listener is one solution. In addition with an AgendaEventListener listening
to
rules being fired you should be able to document what was done and by which
rule. I'd say it is common sense to have this in a business applicat
The basic idea of the DSL implementation in Drools is to use phrases (and
not just single
keywords) with a translation into DRL. These phrases can have parameters.
On 9 August 2012 19:08, san_drools wrote:
> Laune, the problem is when i define a keyword like i said above
> "PersonMobileCont
Hello all,
My company is just venturing into Drools, and I'd like to help make the
endeavor as successful as possible. We'll be incorporating the rules engine
into a broad range of use cases (depending on how successful the first few
are, of course), with a wide range of business users, most of t
Hello manstis,
can you please see my reply to Laune describing what
actually my requirement is and suggest something? And why i felt ever
#condition and #action needs to be in DSL configuration.
Here, the keyword is something like this "PersonMobileContact" -->
Object
Laune, the problem is when i define a keyword like i said above
"PersonMobileContact" for Object1($ContactNum : contactNumber && contacttype
== "mobile"). In business rule, i can use this keyword.
This is ok, but if i want to set this $ContactNum into another object
i.e. Object2. I thin
Hi,
Can anybody let me know that, is there a way to get the failed reason from a
failed rule.
Thanks.
--
View this message in context:
http://drools.46999.n3.nabble.com/Anyway-to-get-Failed-Reason-for-Failed-Rule-tp4019070.html
Sent from the Drools: User forum mailing list archive at Nabble.c
OK, so you use this as a DSL definition. Where is the problem?
-W
On 9 August 2012 16:22, san_drools wrote:
> Hello Laune,
> Yes, the Object and attribute names are meaningful but in
> our case they are a bit lengthy and wanted to give rule author more
> convinience in writing r
Hello Laune,
Yes, the Object and attribute names are meaningful but in
our case they are a bit lengthy and wanted to give rule author more
convinience in writing rules.
For example, when we need to write Object1($contactNo :
contactNumber && contacttype == "mobil
If the values are dynamic and the Fact/Field static for a keyword you could
consider using a Template or Decision Table, where for example a single
column represents a Fact/Field and the user simply provides the values.
I am surprised to read you found DSL had to be defined for every Condition
or
It's not clear from your description, what the "keyword" substitution
should achieve. Usually, class and field names should be chosen so
that they
convey a meaning to the rule author.
Note that the DSL translator lets you mix DRL code lines with DSLR lines.
-W
On 09/08/2012, san_drools wrote:
Hello,
I need to know how to proceed to define keywords that represent
objects of facts in Drools.
In detail, i am using Guvnor editor to write Business and
technical rules required on a package basis for an application. So, here
writing rules by using Objects and it's attrib
Hi,
I have scenario where I need to compare attributes of two different instances
of an object in the decision table.
The scenario is - say I have 5 instances of an object ObjA.
ObjA has an attribute mail_id.
I need to compare the maild_id attributes of the ObjA instances to figure out
if they d
Hi droolers!
I installed the Drool Eclipse 5.4.0 Final plugin into an Indigo SR2
installation of eclipse and found I could not get the rule debugger to work.
I created a standard rules runtime for my workspace. Then I created a drools
project with the HelloWorld rule and the sample loader java
17 matches
Mail list logo