At the momemt 6.x only supports update columns (select an action and
ensure the update engine checkbox is ticked).
You can work around this, to get modify( x ) {...}, by using a BRL Fragment
Action column and use a Free Form DRL Fragment entering the modify syntax.
I am modifying Guided Rules,
Thanks and your assumption is correct
manstis wrote
At the momemt 6.x only supports update columns (select an action and
ensure the update engine checkbox is ticked).
You can work around this, to get modify( x ) {...}, by using a BRL
Fragment
Action column and use a Free Form DRL
rules. Otherwise, there will be plenty of gaps
in your rules.
I know I dint give an answer that you are looking for, but some things to
consider.
Good Luck :)
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-decision-tables-conditional-matching-tp4025603p4025645
We are using drools decision tables and have a quite a few scenarios where
there are three conditions: A, B, and C.
The behavior we want is:
if A is true, then B and C must be true (if B and C are true, we want to
output true, otherwise we want to output false)
if A is not true, then B and C
I am planning to load the decision tables into a KnowledgeBase and cache it
in Infinispan so that it can be accessed by all app instances. Since the
rules dont change frequently, the loader script can be run whenever there is
an update. This makes the XLS files stay along with the loader and not
Hi Guys,
Have been using Guvnor to create some decision tables and got a few
questions on the use of certain Operators in the Condition Columns - what
value do you put in for matches and sounds like?
Basically i want to create a condition where i can check starts with or end
with in relation to
This is not possible with 5.2.
With 5.4 you can create a decision table with a column defined as a BRL
fragment (guided rule editor).
This will allow you to use matches or sounds like. Matches could also
be used to emulate starts with or ends with given the correct regular
expression.
This JIRA
Hi there,
I want to try some more examples of decision tables.
- I have tried with the example from eclipse (drools plugin - create new
decision table)
- TeamAllocationExample.xls and CheckAccepted.xls too (easy to find on
google).
But all of them are created in horizontal way (each rule is one
The presentation merely pointed out that there are several forms
about. A little later it says that only the vertical form is
supported.
-W
On 21/12/2011, Juanker Atina juank...@gmail.com wrote:
Hi there,
I want to try some more examples of decision tables.
- I have tried with the example
The horizontal implementation is in
org.drools.decisiontable.parser.xls.ExcelParser.
If you look at the processSheet method you'll see it scans rows to build
the decision table.
A vertical implementation would need to obviously scan columns (and a pull
request for a community contribution would
First I wanted to add parameters from condition 1 column to a session and
to add condition which makes default rule true if no parameter in session is
equal to an entry argument.
But I couldn't find a way to add a parameter from a condition expression to
a session.
Is it possible?
--
View this
If you want to use a single XLS decision table then the answer is still, no
it's not possible.
If however you willing\able to use DRL then a world of opportunities is
opened to you.
I believe something like this will work - but wait to be corrected - laune?
;)
rule specific 1
when
Ahem,...
2011/7/13 Michael Anstis michael.ans...@gmail.com
If you want to use a single XLS decision table then the answer is still,
no it's not possible.
If however you willing\able to use DRL then a world of opportunities is
opened to you.
I believe something like this will work - but
hehe, I didn't want to fall for the getting salience values round the wrong
way trap like I normally do.
Thanks Wolfgang :)
2011/7/13 Wolfgang Laun wolfgang.l...@gmail.com
Ahem,...
2011/7/13 Michael Anstis michael.ans...@gmail.com
If you want to use a single XLS decision table then the
In fact, I don't need to have default values if no values were found.
I need default values if part of LHS is never true.
If I have the rule:
rule rule_11
when
Object1( constraint1 )
Object2( constraint2 )
then
insert(new Result());
end
I'd like to have rule
On 13 July 2011 14:40, Syargey syar...@tut.by wrote:
In fact, I don't need to have default values if no values were found.
I need default values if part of LHS is never true.
If I have the rule:
rule rule_11
when
Object1( constraint1 )
Object2( constraint2 )
then
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] decision tables and default rules for case
when part of LHS failes for other rules
In fact, I don't need to have default values if no values were found.
I need default values if part of LHS is never true.
If I have the rule:
rule rule_11
Yes. The rule is good for DRL.
But I need to have it in decision table.
--
View this message in context:
http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3166650.html
Sent from the Drools: User forum mailing list
Should be doable just like the positive ones, just put 'not' in front of
Object1
-W
On 13 July 2011 18:44, Syargey syar...@tut.by wrote:
Yes. The rule is good for DRL.
But I need to have it in decision table.
--
View this message in context:
If condition 1 column is left blank, this could be achieved.
On Tue, Jul 12, 2011 at 11:56 AM, Syargey syar...@tut.by wrote:
Hi all,
I have been asked to add default rules to a decision table.
We have a decision table with several conditions. Data from first two
columns are passed to
It doesn't suit :(
A blank column causes an action applies additionally.
But I need it applies only if no other conditions from first column is true.
--
View this message in context:
Is this XLS decision tables or in Guvnor?
In Guvnor, if a condition uses either the == or != operator you can use the
otherwise special value that achieves what you're looking for.
It isn't possible with XLS at present, although there is a JIRA for the
change.
On 12 July 2011 17:47, Syargey
It is in XLS decision table.
--
View this message in context:
http://drools.46999.n3.nabble.com/decision-tables-and-default-rules-for-case-when-part-of-LHS-failes-for-other-rules-tp3162872p3163227.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
this problem? Is there
an example somewhere that uses a ScriptTask from a DT?
Regards,
Mike
From: rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Friday, May 27, 2011 5:08 PM
To: Rules Users List
Subject: Re: [rules-users] Decision Tables
You can add the ruleflow-group Attribute to the XLS form, or in Guvnor
using the guided editor.
Decision Tables compile to a common form that KnowledgeBuilder uses to
create your engine; so AFAIK using them in a flow should not be a problem.
With kind regards,
Mike
On 26 May 2011 22:03,
Thanks for your response. I have not seen any example of this. Where does the
ruleFlow-group attribute go on the spreadsheet?
--
View this message in context:
http://drools.46999.n3.nabble.com/Decision-Tables-with-Business-Rule-Tasks-tp2990517p2994420.html
Sent from the Drools: User forum
The same place as any attribute, like Salience, Agenda-Group etc
Section 5.1.4.2. Keywords in Drools Expert 5.1.1's documents talks about
it a bit.
Cheers,
Mike
On 27 May 2011 22:02, mmcintosh michael.g.mcint...@citi.com wrote:
Thanks for your response. I have not seen any example of this.
Is it possible to use a decision table to specify the rule for a business
rule task? How is the ruleFlowGroup specified?
--
View this message in context:
http://drools.46999.n3.nabble.com/Decision-Tables-with-Business-Rule-Tasks-tp2990517p2990517.html
Sent from the Drools: User forum mailing
Hi,
Currently I've got a consequence on a decision table that works like this:
callHelperFunction( $1, $2, $handleFromConditions);
where the first two parameters are strings, $1 being a code, $2 a
description.
which means that you get the table holding things like:
DC
I think this is more a Java question of how to call a method in instalments.
One option is to set a temporary from the 1st column, and call from
the 2nd: The first column might be
String code = $param;
and the next column would
callHelperFunction( code, $param, $handleFromConditions);
and the
Sent by: rules-users-boun...@lists.jboss.org
29/03/2011 08:21 p.m.
Please respond to
Rules Users List rules-users@lists.jboss.org
To
Rules Users List rules-users@lists.jboss.org
cc
Subject
Re: [rules-users] Decision tables - multiple params to function over
multiple columns
I think
Hello,
What is the most straightforward example of using a decision table for
rules(CSV or Excel) within the sample code?
Essentially I want to check if it would work for the usage case where I want
the end user to be able to set all sorts of parameter limit values for rules
on objects
I've been trying to get agenda groups working and after a bit of poking
around have realised that agenda group support is broken.
Looking on jira somebody has already raised the bug and supplied a
simple patch (https://jira.jboss.org/jira/browse/JBRULES-2208) when is
this patch likely to be
Now a question on Change Sets:
Can a change set contain rule templates and their corresponding decision
table?
The way do use templates, as I have done at least and found in the
documentation, is to use an ExternalSpreadSheetCompiler to generate the
final rules using the templates and
Sorry, would someone validate that there's no agenda group support in
the decision table functionality?
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Evans, Jess
Sent: Monday, December 01, 2008 10:06 PM
To: Rules Users List
Subject: [rules-users] decision tables - no agenda
:* Monday, December 01, 2008 10:06 PM
*To:* Rules Users List
*Subject:* [rules-users] decision tables - no agenda group?
It doesn't appear that the decision table parser supports an agenda-group
declaration. I find this odd since the documentation says it supports
activation and ruleflow. Can
: [rules-users] decision tables - no agenda group?
I don't think there is.
On Sat, Dec 6, 2008 at 1:00 AM, Evans, Jess [EMAIL PROTECTED]
wrote:
Sorry, would someone validate that there's no agenda group support in
the decision table functionality?
From: [EMAIL PROTECTED]
[mailto:[EMAIL
PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Michal Bali
*Sent:* Friday, December 05, 2008 8:26 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] decision tables - no agenda group?
I don't think there is.
On Sat, Dec 6, 2008 at 1:00 AM, Evans, Jess [EMAIL PROTECTED]
wrote
It doesn't appear that the decision table parser supports an
agenda-group declaration. I find this odd since the documentation says
it supports activation and ruleflow. Can someone validate this?
thanks,
-Jess
___
rules-users mailing list
hi,
I have no problem for this kind of rule :
rule Primitive support
when
$c : Cheese( price 10 )
then
$c.setPrice( 10 )
end
but I would like to know what is the decision table for this small rule
rule Primitive support
when
$c
RuleTable Rules for Cheese
CONDITION
ACTION
$c : Cheese
$c
$price : price
setPrice($price * $1)
0
2
Thanks
mahesh
From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Mon, 7 Apr 2008 08:56:34
+Subject: [rules-users] decision tables and attributes as parameters in
function calls
hi,I have
Thanks a lot, I will try this.
From: [EMAIL PROTECTED]
To: rules-users@lists.jboss.org
Subject: RE: [rules-users] decision tables and attributes as parameters in
function calls
Date: Mon, 7 Apr 2008 14:31:49 +
Jonathan,
The decision table mandates atleast one condition. I
Hi,
I usually use decision tables without sequence. But there was a request Not to
use priority and if there was a conflict then the rule on top should get
priority.
I thought, sequence = true was a good way of ensuring that. But in the rules I
call update(); this forces all the rules to fire
As the docs state sequential rete, I'm assuming this is what you mean,
does not allow full inference modification of data does not result in
re-evaluation of rules, i.e. update() does nothing.
You can achieve what you want using a custom Conflict Resolution
Strategy, however I advise you to
, 2007 7:39 AM
To: rules-users@lists.jboss.org
Subject: [rules-users] decision tables
Hi to every one,
Can i examples of drools with decision tables. I gone
through documentation. But can i have some other examples.
Regards:
Kranthi Dalai ( I
Hi To every one,
I understood the pricing example. But problem is that i
have to give the table to my HR-People that they can modify and update the
rules. That's the question i am asking.
Thanx Regards:
Kranthi Dalai
___
@lists.jboss.org
Subject: [rules-users] Decision tables
Hi To every one,
I understood the pricing example. But problem is that i
have to give the table to my HR-People that they can modify and update the
rules. That's the question i am asking.
Thanx Regards
look in the drools-examples download.
Mark
kranthikumar dalai wrote:
Hi to every one,
Can i examples of drools with decision tables. I
gone through documentation. But can i have some other examples.
Regards:
Kranthi Dalai ( I posted so many querries
Hi Edson,
I've abstracted our use case since I gather you don't understand the dutch
legal system. :-)
Given a decision table like this ( I hope you are able to read the HTML post
correctly)
I
A
p
II
B
q
III
C
r
IV
D
s
none of the above
E
t
F
u
none of the above
v
Ok, I think that HTML tables get mangled. I'll mail it to you directly.
2007/2/13, Joost de Vries [EMAIL PROTECTED]:
Hi Edson,
I've abstracted our use case since I gather you don't understand the dutch
legal system. :-)
Given a decision table like this ( I hope you are able to read the HTML
50 matches
Mail list logo