expectation for -Ddrools.dump.dir to show DRL error context ..
by Cotton, Ben
Hi,
I thought this worked for me at some point, but, I now seem to have lost my ability to get any debuggable DRL error contexts via the -Ddrools.dump.dir property.
Here is my command line, that simply borrows from the DROOLs sample package's Cheese.xls SpreadsheetCompiler example , to produce a .DRL from an (.XLS, .DRT) input pair:
java com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT \
-Ddrools.dump.dir=./DroolsDumpDir \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_FEED_TO_DRT_Template-BASIS.xls \
../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES_TEMPLATE-BASIS.drt \
2>&1 | grep -v Picked | \
tee ../main/packages/com/ms/fast/triclear/eligibility/rules/IRD_PRODUCT_RULES=RENDERED.drl
This command line produces the following errors:
Error compiling resources:
[ERR 102] Line 923:0 mismatched input ''
[ERR 101] Line 8:60 no viable alternative at input '"LCH US"' in rule "IRD_PRODUCT_RULE_24"
[ERR 101] Line 46:60 no viable alternative at input '"LCH EU. SCM"' in rule "IRD_PRODUCT_RULE_23"
Parser returned a null Package
Exception in thread "main" java.lang.IllegalStateException: Error compiling resources
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.buildKBase(GenerateDRLfromEligibilityRulesRepoViaDRT.java:93)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.execute(GenerateDRLfromEligibilityRulesRepoViaDRT.java:50)
at com.ms.fast.triclear.eligibility.rules.GenerateDRLfromEligibilityRulesRepoViaDRT.main(GenerateDRLfromEligibilityRulesRepoViaDRT.java:44)
Unfortunately, my ./DroolsDumpDir/ directory contents are completely empty. I was hopeful it might contain a staged .DRL context from which I could more easily debug my roadblock.
Is there more that I have to do, beyond just passing -Ddrools.dump.dir=./DroolsDumpDir on the command line?
Ben D Cotton III
Morgan Stanley & Co.
OTC Derivatives Clearing Technology
1221 AOTA Rockefeller Ctr - Flr 27
New York, NY 10020
(212)762.9094
ben.cotton(a)ms.com<mailto:ben.cotton@ms.com>
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
12 years
BRL and Agenda-group
by TonyN
Hi,
I am using Guvnor 5.4 Final and having a hard time getting BRL rules and
agenda group to work. Seems like if I don't assign the agenda-group then
the rules would file, but if I set agenda-group (brl, declaratively) and use
DRL to set the focus, then the rules don't get fired.
Is it possible to use BRL and Agenda-group together or does Agenda-group
only work w/ DRL rules?
I'm wondering if there is something that need to enable or anything?
thx,
--
View this message in context: http://drools.46999.n3.nabble.com/BRL-and-Agenda-group-tp4020883.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Problem sharing declarative model between two packages
by Al
I would like to be able to share a declarative model between two packages.
When I attempt to do this by creating my model in Guvnor's Global Area and
then importing it into each package, I find that instances of the declared
types that are created by rules in one package are not recognized by rules
in the other package.
For example, suppose I create a model in the global area with a declared
type:
declare MyType
field1: String
end
I then import this model into packages "p1" and "p2". I add the following
rule into package "p1":
rule "create it"
when
eval(true)
then
MyType m = new MyType();
insert(m);
end
and I add the following rule into package "p2":
rule "find it"
when
$m : MyType()
then
System.out.println("found it");
end
At runtime, the "create it" rule fires and inserts a "MyType" object.
However, the "find it" rule never fires.
If I add a WorkingMemoryEventListener and look at exactly what is being
inserted, I can see that the "create it" rule is inserting an instance of
p1.MyType. I assume that the "find it" rule is looking for an instance of
p2.MyType and that is why it never fires.
Is there a different way to accomplish this? Or, are declarative models
simply not intended to be shared across packages?
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-sharing-declarative-model-betwe...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Drools benchmarks
by tomdc
Hello,
I'm looking for some statistics on the memory usage and speed of executing
rules when using Drools.
I was wondering if anyone has lately done some benchmarking on Drools 5.X ?
The last results that I keep on stumbling on are from 2009.
If anyone can point me to some recent graphs (or data that can be turned
into a graph) concerning benchmarks on the latest Drools version?
Thanks in advance
TDC
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-benchmarks-tp4020890.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Is Drools Scorecard used only with spreadsheet type?
by Daniel Souza
I was looking for Drools Scorecard in the sources code and I noticed that
have use just for spreadsheet at the ScorecardCompiler class.
We know that it's something new the integration with PMML and I deeply
interested in it.
Is There a way to create directly a DRL type file to work with Drools
Scorecard?
I don't know how PMML work, but I know why PMML is used. It's an interesting
project that will be a good solution.
Maybe if I understand how to compile both I can try myself some tests and if
it's possible to use rules in the traditional way to compile with PMML I
will try too.
--
View this message in context: http://drools.46999.n3.nabble.com/Is-Drools-Scorecard-used-only-with-spre...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Skill requirement not satisfied
by adc
I am running a nurse rostering instance. But the skill requirement is not
satisfied.
I have already checked that:
- For each shift, the Shift/Skills/Skill tag is set with the proper Skill
value.
- For each employee, the Employee/Skills/Skill is set with the proper Skill
value.
- For each DayOfWeekCover, the DayOfShiftCover/Cover/Shift tag is set with
the proper Shift value.
When I run the NurseRosteringPlann, assignments are made. But I see that:
- The skill requirement is not satisfied.
- The best score is reached when all the assignement are made.
Where do I fail? What should I check?
--
View this message in context: http://drools.46999.n3.nabble.com/Skill-requirement-not-satisfied-tp40208...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
AUTO: Gary Givental is out of the office (returning 12/13/2012)
by Gary Givental
I am out of the office until 12/13/2012.
Daniel Chapman is the primary contact for all AI related issues in my
absence.
Note: This is an automated response to your message "rules-users Digest,
Vol 72, Issue 35" sent on 11/17/2012 11:23:29.
This is the only notification you will receive while this person is away.
12 years
Call for Participation: Semantic Web Applications and Tools for Life Sciences (SWAT4LS 2012)
by Adrian Paschke
*** REGISTRATION DEADLINE ENDS Nov 24th, 2012
Call for Participation
5th International Workshop on Semantic Web Applications and Tools for the Life Sciences (SWAT4LS 2012)
http://www.swat4ls.org/workshops/paris2012
Dear Colleagues,
We would like to invite you to participate in the 5th International Workshop on Semantic Web Applications and Tools for the Life Sciences (SWAT4LS 2012), 28 - 30 November 2012, Paris, France.
Growing steadily each year, as Semantic Web applications have become more widespread, the size and program of SWAT4LS has grown to include associated events. The registration for SWAT4LS 2012 will end 24 Nov 2012 - http://www.swat4ls.org/workshops/paris2012/registration/
Highlights of the program: http://www.swat4ls.org/workshops/paris2012/scientific-programme/
-------------------------
- 4 Keynotes
x Mark A. Musen, M.D., Ph.D: Semantic Technology Goes Mainstream: The NCBO Experience
x C. Michael Gibson, M.S., M.D., FRCP, FAHA, FSCAI, FACC: The World is Flat, but the Earth is Round
x Christine Golbreich, Ph.D: Formal ontologies for the Semantic Web ?
x Ann Marie Martin, Principal Scientific Manager, Knowledge Management, European Innovative Medicine Initiative : Joining private and public forces to boost innovation in healthcare: the innovative medicines initiative and knowledge management
- 6 Tutorials
x Interconnecting Linked Open Data and R with the SPARQL package for Linked Science
x Biologial Pathways and the Semantic Web
x Using SPARQL to Query BioPortal Ontologies and Metadata
x Drug-discovery knowledge integration and analysis using OWL and reasoners
x Thorough introduction to SPARQL for anyone in the Life Sciences
x Use of the BioQueries collaborative portal
- a Hackathon Day: SWAT4LS Hackathon
- a Scientific Poster Exibition
- a Industry Track: Linked Life Data: Increasing Research Scope without Integration Headaches
- Scientific Paper Presentations
You will be offered an exciting venue to exchange new ideas and learn more about Semantic Web applications and tools.
The full SWAT4LS program is available at:
http://www.swat4ls.org/workshops/paris2012/scientific-programme/
The registration page is open at:
http://www.swat4ls.org/workshops/paris2012/registration/
We are looking forward to welcoming you in Paris!
Best regards,
Adrian Paschke, Albert Burger, Paolo Romano, M. Scott Marshall, Andrea Splendiani
12 years
"not in" in decision table with string input errors out
by john_appleseed_79
In my decision table I have the following input data -
+----------------------+
|CONDITION |
| |
|$data not in $param |
|Header |
|("123","234","00456") |
+----------------------+
This errors out with the following error:
[40,30]: [ERR 101] Line 40:30 no viable alternative at input ''
[43,0]: [ERR 102] Line 43:0 mismatched input ''
[6,36]: [ERR 101] Line 6:36 no viable alternative at input '\' in rule
"Pricing bracket_11"
[0,0]: Parser returned a null Package
How do we make sure that the not in comparison works for strings in Decision
Table. It seems quite easy on a DRL file. If somebody can help me out on
this, I would be very thankful.
--
View this message in context: http://drools.46999.n3.nabble.com/not-in-in-decision-table-with-string-in...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years