Multiple Excel decisiontables - a bug
by satjo
I think following is a bug and I would like to how different users think
Issue: If there are multiple Excel decisiontables files, i.e, NOT multiple
decision tables in a single spreadsheet, then the 'fireall' does not
necessarily give right results as the rule names get repeated in the
resolved drl file.
How to produce?:
One can produce this issue adding multiple Excel files in Knowledbuilder and
also one can see the same problem in Guvnor when one uploads multiple Excel
decision tables.
Reason for the behavior:
The rule name (with row number post fix) gets repeated if all the
spreadsheets for the given model.
Let us say if I have a model 'com.sample.Test' and two spreadsheet decision
tables use this model, then the final resolved drl file would have two rules
with the same name, e.g. Test_11 etc.
I looked into the code 'org.drools.template.model' and name is not unique
between different spreadsheets.
If this name is unique, e.g. name of the spreadsheet (presuming each
spreadsheet is having unique name), then I do get correct results.
I want to know if any one has similar experience or comments.
--
View this message in context: http://old.nabble.com/Multiple-Excel-decisiontables---a-bug-tp26408909p26...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 5 months
Need Syntax help for a string match
by Lindy hagan
Need to do some tasks if customers age is in 18,21,33,28,40,41. Can't use
contains as age is a string value.Could any one help me out. Below rule does
not work.
rule "Age Factor"
when
m : Customer( age matches "18,21,33,28,40,41")
then
System.out.println("Customer falls in age group ");
doAgeTasks();
end
Thanks,
Lindy.
16 years, 5 months
Working in the GWT console
by ramram8
Hi I am having the following problem:
I am able to start the web cosole successfully and see all the process List
that I want to execute.
My scenario is the following: User Task1 -> User Task2 -> Send Mail
What I did is:
1- upload the jar file into Guvnor
2- upload the rf file into Guvnor
3- Build the package and restart the server
4- After logining into GWT console I can run the process and see in the User
Task1 and I can complete the task with no errors but the problem is that I
am not being able to reach to USER TASK2
any suggestions??
is there problem in the upload in the Guvnor??
is there anything additional that I can do??
Please if anyone have any suggestions on this topic???
--
View this message in context: http://old.nabble.com/Working-in-the-GWT-console-tp26387553p26387553.html
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 5 months
No Guided DSL Rule Editor
by Qian, Tony
I'm currently evaluating Drools as Rules Engine for our Company. I'm kind of struggling with using Guvnor to create rule. I created two fact models, one by uploading jar file and another using declarative model. When I tried to create rules, I don't see DSL Business Rule (Guided Editor) in the drop down list. I only have following in drop down list. (I'm using drools-5.0-guvnor-standalone).
Business Rule (Guided editor)
DSL Business Tule (Text editor)
DRL Rule (Technical rule -text editor)
Decision Table (Spreadsheet)
Decision Table (Web -guided editor)
>From Business Rule (Guided editor), I have only "There is no", "There Exists" and "Any of" for condition and 'insert fact' and 'Logically insert fact' choice for action. Did I miss something?
Thanks,
Tony
<HR>
<font size="1" face="Arial"><B>CONFIDENTIALITY NOTICE: </B>The information in this electronic transmission and
any documents accompanying it may contain confidential and privileged
information intended for use by the individual or entity that is the intended
recipient. If you have received this message in error or due to an unauthorized
transmission or interception, please delete all copies from your system without
disclosing, copying, or transmitting this message and notify us by telephone
877TELLUS9 or by electronic mail <a href = "servicecomments(a)progressive-medical.com">servicecomments(a)progressive-medical.com</a>.</font>
16 years, 6 months
Executing a Process in the GWT Console
by ramram8
Hi all I have the following scenario:
START -> User Task1 -> Usert Task2 -> Log -> User Task3 -> END
in the GWT console both user task 1 and task 2 are being well executed when
the process reaches the LOG it is not giving anything and User Task3 is
never reached.
Any ideas????
I did the following:
1- uploaded the .rf file into Guvnor
2- uploaded the jar file into Guvnor that includes the KnowledgeBaset and
session.start("processname")
3- build the package and creates a snapshot
should i do something else to link the jar file to the .rf file??
What should be done in order to execute the process correctly from start to
end???
--
View this message in context: http://old.nabble.com/Executing-a-Process-in-the-GWT-Console-tp26403941p2...
Sent from the drools - user mailing list archive at Nabble.com.
16 years, 6 months
Mail System Error - Returned Mail
by MAILER-DAEMON
The original message was received at Tue, 17 Nov 2009 18:33:48 -0700
from 79.191.51.223
----- The following addresses had permanent fatal errors -----
<rules-users(a)lists.jboss.org>
16 years, 6 months
Trouble running 4.07 examples
by Charles Binford
A co-worker is trying to come up to speed on drools 4.07 so I was trying
to get him setup to go through the examples. The default HelloWorld
program created by the Drools Project wizard works fine, but all of the
examples from the download page show errors. Here is his config:
Platform is Windows Vista 64-bit. Java JRE 1.6 and JDK installed.
Installed Eclipse Europa 3.3.2.
Installed GEF plugin for matching version through the Eclipse
Install/update method.
Installed Drools 4.0.7 plugin through the Eclipse Install/update method.
Created a new Drools Hello world project. That built and ran correctly.
Created a new Drools project and imported the drools-4.0.7-examples.
This resulted in no compile errors for any of the .java files. However,
there are many, many errors for the .drl files and obviously I can't run
any of the examples.
It seems every 3rd line or so of his drl files are marked with a error
by eclipse - almost like eclipse thinks they should be following java
syntax. These are not errors from packagebuild, they are eclipse marked
errors. Here is a sample from the "problems" list.
Severity and Description Path Resource Location Creation
Time Id
#1 Once a specific cell has a ResolvedCellValue, remove all the other
PossibleCellValues for the same cell:Unable to resolve ObjectType
'PossibleCellValue'
monkey/drools-4.0.7-examples/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/sudoku
sudokuSolver.drl line 27 1258498499245 50766
Severity and Description Path Resource Location Creation
Time Id
#11 If there are two fields with only two possible values in the same
zone, remove the PossibleValues for the same Value in the rest of the
zone:Unable to resolve ObjectType 'PossibleCellValue'
monkey/drools-4.0.7-examples/drools-examples/drools-examples-drl/src/main/rules/org/drools/examples/sudoku
sudokuSolver.drl line 141 1258498499245 50804
Severity and Description Path Resource Location Creation
Time Id
$account cannot be resolved
monkey/drools-4.0.7-examples/drools-examples/drools-examples-drl/src/main/rules/org/drools/tutorials/banking
Example6.drl line 3 1258498498840 50717
Thanks for any help
Charles Binford
16 years, 6 months
Getting java.util.ConcurrentModificationException when updating a fact from Decision Tables.
by Gurvinder Narula1
I have a decision table with one CONDITION column. My fact could match
multiple rules (rows) of the decision table. With each match, the
'ACTION' cause the fact itself to change. I'm using 'modify' as follows
to change my fact:
modify ($line) { addItem( new Item("DISCOUNT","25%")); }
(essentially I need to add a item to a line when ever the LHS matches).
This works fine when I use a DRL. But when I try to use a decsion table,
I get 'java.util.ConcurrentModificationException' the second time my
fact matches a rule.
Does anyone know if we can modify facts from decision tables ? All the
examples I've seen so far don't show how decision tables handle updating
of facts.
Here's the stack trace I get :
org.drools.runtime.rule.ConsequenceException:
java.util.ConcurrentModificationException
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleEx
ception(DefaultConsequenceExceptionHandler.java:23)
at
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:943)
at
org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:885)
at
org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1082)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemo
ry.java:682)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemo
ry.java:649)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowle
dgeSessionImpl.java:177)
at
com.sample.DecisionTableTest.main(DecisionTableTest.java:31)
Caused by: java.util.ConcurrentModificationException
at
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at com.sample.Line.addPromotion(Line.java:46)
at
com.lazboy.promotions.Rule_Group_Promotion_14_0.consequence(Rule_Group_P
romotion_14_0.java:7)
at
com.lazboy.promotions.Rule_Group_Promotion_14_0ConsequenceInvoker.evalua
te(Rule_Group_Promotion_14_0ConsequenceInvoker.java:22)
at
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:934)
... 6 more
I'm using Drools Expert 5.0.1.
Thanks
Gurvinder
16 years, 6 months